--- trunk/doc/hello_mips.c 2007/10/08 16:18:31 11 +++ trunk/doc/hello_mips.c 2007/10/08 16:18:38 12 @@ -1,4 +1,18 @@ -/* MIPS Hello World for GXemul */ +/* + * $Id: hello_mips.c,v 1.3 2005/08/09 18:29:20 debug Exp $ + * + * MIPS Hello World for GXemul. + * + * Compile: + * mips64-unknown-elf-gcc -O2 hello_mips.c -mips4 -mabi=64 -c + * + * and link: + * mips64-unknown-elf-ld -Ttext 0xa800000000030000 -e f + * hello_mips.o -o hello_mips --oformat=elf64-bigmips + * + * Run: + * gxemul -E testmips hello_mips + */ /* Note: The cast to a signed int causes the address to be sign-extended correctly to 0xffffffffb00000xx when compiled in 64-bit mode */ @@ -26,3 +40,4 @@ printstr("Hello world\n"); halt(); } +