[LLVMdev] How to use the JIT with llvm-gfortran ?

Olivier Meurant meurant.olivier at gmail.com
Tue Mar 31 07:54:27 PDT 2009


Hi,

Have you try the "-entry-function=" parameter of lli ?

Olivier.

2009/3/31 philippe marguinaud <pmarguinaud at hotmail.com>:
> 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
>
>
> ________________________________
> Get news, entertainment and everything you care about at Live.com. Check it
> out!
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>




More information about the llvm-dev mailing list