[LLVMdev] Question about SPARC target status
resistor at mac.com
Tue Nov 11 10:53:27 PST 2008
On Nov 11, 2008, at 10:34 AM, Peter Shugalev wrote:
> Anton Korobeynikov wrote:
>>> I thought llvm-gcc isn't meant to compile for specific target (at
>>> with -emit-llvm flag I'm using).
>> No, it is not. C language is highly target-specific, thus LLVM IR
>> obtained from such sources also has the same nice 'property'
> I can see only one reason for such dependence: inclusion of system
> headers in /usr/include. If I compile llvm-gcc with predefined set of
> Linux headers (the way cross-compilers are usually made) will the IR
> output be the same no matter which platform is used for compilation?
No. Consider use of sizeof(), ABI issues, etc.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2624 bytes
Desc: not available
More information about the llvm-dev