[LLVMdev] Using output from dragonegg

Duncan Sands baldrick at free.fr
Mon Dec 26 13:19:10 PST 2011


Hi Zack,

> I am trying to understand how to properly use dragonegg. I've gotten it on my
> machine and it runs everything and seems to compile fortran well.
>
> If I run this command:
> gcc-4.6 tests/hello_world.f -o hello_world.o -fplugin=./dragonegg.so -S -flto
> I get a bunch of LLVM code in the hello_world.o file. What do I do with it next
> if I want to execute it?
> I've tried llvm-as and llvm-nm but both of them just throw errors up about file
> formats or errors that seem to indicate they aren't being used for
> their intended purpose.

llvm-as should work.  Maybe your llvm-as is from an older version of LLVM than
dragonegg?  What errors do you get exactly?

Ciao, Duncan.



More information about the llvm-dev mailing list