[LLVMdev] What different?

yue qiangyue at ict.ac.cn
Fri Dec 19 03:30:02 PST 2003


hi,
when build test echo.cpp using "llvmg++ echo.cpp -o echo"
it create an echo file, contain:
-------------------------------------
[yue at RH9 Shootout-C++]$ cat echo
#!/bin/sh
lli \
     -load=/usr/lib/libm.so \
     $0.bc $*
---------------------------------------
and using "llvmgcc echo.cpp -o echo-c",
it creates an echo-c file, contain:
---------------------------------------
[yue at RH9 Shootout-C++]$ cat echo-c
#!/bin/sh
lli \
     $0.bc $*
----------------------------------------

why the first needs to load "libm.so" and the later does not?

yueqiang




More information about the llvm-dev mailing list