I want to compile and run very simple tests for the compilers (GCC and
LLVM). How do I build a simple program _without_ RTEMS and load it into
qemu?
- What's the full compile/link command?
- How do load and run the program in qemu?
I tried using the "lightweight toolchain" lm32-elf-gcc:
http://www.milkymist.org/wiki/index.php?title=Compiling_a_lightweight_Mico32_toolchain
but the trivial "lm32-elf-gcc hello.c -o hello" didn't link properly.
MacBook-Pro:tmp jpbonn$ lm32-elf-gcc hello.c -o hello
hello.c: In function ‘main’:
hello.c:5:1: warning: incompatible implicit declaration of built-in
function ‘printf’
/usr/mico32/lib/gcc/lm32-elf/4.5.3/../../../../lm32-elf/bin/ld: cannot
find -lgcc
/usr/mico32/lib/gcc/lm32-elf/4.5.3/../../../../lm32-elf/bin/ld: cannot
find crti.o
/usr/mico32/lib/gcc/lm32-elf/4.5.3/../../../../lm32-elf/bin/ld: cannot
find crtbegin.o
/usr/mico32/lib/gcc/lm32-elf/4.5.3/../../../../lm32-elf/bin/ld: cannot
find crtend.o
/usr/mico32/lib/gcc/lm32-elf/4.5.3/../../../../lm32-elf/bin/ld: cannot
find crtn.o
/usr/mico32/lib/gcc/lm32-elf/4.5.3/../../../../lm32-elf/bin/ld: cannot
find -lgcc
collect2: ld returned 1 exit status
MacBook-Pro:tmp jpbonn$
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode
Twitter: www.twitter.com/milkymistvj
Ideas? http://milkymist.uservoice.com