[LLVMdev] Question about SPARC target status

Owen Anderson resistor at mac.com
Tue Nov 11 10:53:27 PST 2008

On Nov 11, 2008, at 10:34 AM, Peter Shugalev wrote:

> Hi,
> Anton Korobeynikov wrote:
>>> I thought llvm-gcc isn't meant to compile for specific target (at  
>>> least
>>> 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...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081111/e39dab81/attachment.bin>

More information about the llvm-dev mailing list