Hi,

thanks to JP Bonn, there is now some LLVM code to support the LM32
processor. This is still very experimental and work in progress.

You can test with:
git clone git://github.com/milkymist/llvm-lm32.git
cd llvm-lm32/tools
git clone git://github.com/milkymist/clang-lm32.git
mv clang-lm32 clang
cd ..
mkdir build
cd build
cmake ..
make
make install

Then try compiling a file with (example is with the memstats.c from the
demo firmware, which works - many other files do not compile at all):
clang -ccc-host-triple mico32-generic-generic -o memstats.elf -c
memstats.c  -I../include/base -I../include -ccc-gcc-name
lm32-rtems4.11-gcc

It currently uses GNU AS to assemble the file. Using LLVM's integrated
assembler by passing the "-integrated-as" option to clang does not work
yet because of missing bits in the LM32 target code.

Patches and comments welcome (I guess :)

S.

_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode
Twitter: www.twitter.com/milkymistvj
Ideas? http://milkymist.uservoice.com

Reply via email to