[LLVMdev] POSIX thread library support

陳韋任 chenwj at iis.sinica.edu.tw
Sun Sep 25 06:22:03 PDT 2011


> According to the link, I found that during the compiling process, the option "-emit-llvm" must be added to generate immediate object *.o. 
> [hanfeng at os-wstation02 fft]llvm-gcc -c fft.c -emit-llvm

  "-emit-llvm" emits object file which contains LLVM bitcode (IR).
Default file name suffix is .o, but you might want to use "-o fft.bc"
to make the suffix self-explained.

> Then using llvm-ld will generate two files - a shell excutable and a llvm bytecode data both of which would run perfect. 
> [hanfeng at os-wstation02 fft]llvm-ld -o FFT fft.o
                                        ^^^
  Is it not a native excutable?

Regards,
chenwj     

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667




More information about the llvm-dev mailing list