Tested with GCC 1.30 Tool#2 patchlevel 5 and GCC 2.6.3 Lv.3 Exp.20.

Build with either:

gcc hello.c -ldos -o hello.x
gcc2 hello.c -ldos -o hello.x

Code:

#include <doslib.h>

void main(int argc, char *argv[])
{
        _PRINT("Hello world!\n");
}
 
 x68000/helloworld_c.txt · Last modified: 2019/08/27 20:45 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Driven by DokuWiki