[LLVMdev] How to use the JIT with llvm-gfortran ?
philippe marguinaud
pmarguinaud at hotmail.com
Tue Mar 31 07:47:18 PDT 2009
Hi all,
I am having a look at llvm-gfortran; it compiles OK, but I do not know how to using the JIT as described in http://llvm.org/docs/GettingStarted.html#tutorial. With llvm-gcc I managed to invoke the lli properly, but with llvm-gfortran compiled programs, it fails with the following message:
philou at tleilax:~/gcc/llvm/install/bin$ lli ./main.bc
'main' function not found in module.
I understand it does not find the entry point of the program ( gfortran creates a MAIN__ function to be linked with some other code ).
What should I so to have the lli running fortran code ?
Regards,
Philippe
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090331/52ca68a2/attachment.html>
More information about the llvm-dev
mailing list