Originally Posted by Samurai_Crow
There's no backend for 68k on LLVM yet. I want to write one but got no farther than starting a project on SourceForge.net. The backend for GCC isn't good either.
Have you seen this:
I compiled it and it does work (Debian Linux). But any C function call fails...
typedef unsigned int uint32_t;
typedef char int8_t;
uint32_t foo(uint32_t x, int8_t y)
return (x | (1 << 17)) + y;
clang -emit-llvm test.c -c -O2 -o test.ll
./llvm-m68k/build/bin/llc -march=m68k test.ll
; GLOBAL foo
foo PROC ; @foo
move.l #131072, d1
or.l (a6), d1
move.b 4(a6), d0
add.l d1, d0