[cfe-dev] Patch: Make ccc generate native object files

Chris Lattner clattner at apple.com
Sat Feb 9 13:18:50 PST 2008


On Feb 9, 2008, at 12:49 PM, Shantonu Sen wrote:
> One approach that would probably make everyone happy is to teach "llc"
> how to output the original bitcode stream in its own section/segment
> in the native assembly stream, and teach the LLVM libraries how to
> extract this encapsulated bitcode data for Mach-O, ELF, etc., in the
> event that the input file is not a bitcode file directly.

It's pretty easy to get the .bc file encoded into the .s file in some  
magic section, however, it would be harder to teach all the llvm tools  
about native .o files etc,

-Chris



More information about the cfe-dev mailing list