EnvironmentSetup/AmigaOS/hello

Back to Amiga OS

9.Code:test> cat hello.c


 * 1) include 
 * 2) include 

int main( void ) {   fprintf( stdout, "Coucou\n" ); return EXIT_SUCCESS; }

The compilation itself ( -v is there to provide me some information I need)

NOTE: all the newlines below have been added for readability reasons

9.Code:test> gcc -v -o coucou hello.c -mcrt=clib2

Using built-in specs.

Target: ppc-amigaos

Configured with: ../gcc/configure --prefix=/gcc --host=ppc-amigaos --target=ppc-amigaos --build=i686-cygwin --enable-haifa --enable-sjlj-exceptions --enable-languages=c,c++

Thread model: single gcc version 4.2.4 (adtools build 20090118) /gcc/libexec/gcc/ppc-amigaos/4.2.4/cc1 -quiet -v -iprefix ../lib/gcc/ppc-amigaos/4.2.4/ -isystem /SDK/clib2/include -isystem /SDK/local/clib2/include -isystem /SDK/include/include_h -isystem /SDK/include/netinclude -isystem /SDK/local/common/include hello.c    -quiet -dumpbase hello.c    -mcrt=clib2 -auxbase hello -version -o /tmp/ccaErLzc.s

ignoring nonexistent directory "/SDK/local/clib2/include" ignoring nonexistent directory "../lib/gcc/ppc-amigaos/4.2.4/include" ignoring nonexistent directory "../lib/gcc/ppc-amigaos/4.2.4/../../../../ppc-amigaos/include" ignoring nonexistent directory "/gcc/lib/gcc/ppc-amigaos/4.2.4/../../../../ppc-amigaos/include"

/SDK/clib2/include /SDK/include/include_h /SDK/include/netinclude /SDK/local/common/include /gcc/lib/gcc/ppc-amigaos/4.2.4/include /GCC/include End of search list.
 * 1) include "..." search starts here:
 * 2) include <...> search starts here:

GNU C version 4.2.4 (adtools build 20090118) (ppc-amigaos) compiled by GNU C version 4.2.4 (adtools build 20080706).

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: e0577a9cfa14e6819e1e31cc8e319aef as -mppc -V -Qy -o /tmp/ccAImliq.o /tmp/ccaErLzc.s

GNU assembler version 2.18 (ppc-amigaos) using BFD version (GNU Binutils) 2.18 ld --eh-frame-hdr --defsym __amigaos4__=1 -Bstatic -q -d -V -Qy -L/SDK/clib2/lib -L/GCC/lib/gcc/ppc-amigaos/4.2.4/clib2/lib -L/SDK/local/clib2/lib -L/SDK/local/common/lib -o coucou /SDK/clib2/lib/crtbegin.o /SDK/clib2/lib/crt0.o -L/gcc/lib/gcc/ppc-amigaos/4.2.4 -L/gcc/lib/gcc/ppc-amigaos/4.2.4/../../../../ppc-amigaos/lib -L/gcc/lib/gcc/ppc-amigaos/4.2.4/../../.. /tmp/ccAImliq.o -lgcc -lgcc_eh --start-group -lc --end-group -lgcc -lgcc_eh /SDK/clib2/lib/crtend.o

GNU ld (GNU Binutils) 2.18 Supported emulations: amigaos elf32ppc

Test it :

9.Code:test> coucou

Coucou