• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C language in obj-c
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C language in obj-c


  • Subject: Re: C language in obj-c
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 29 Apr 2009 12:51:29 +0200


Le 29 avr. 09 à 12:39, Alastair Houghton a écrit :

On 29 Apr 2009, at 11:35, Jean-Daniel Dupas wrote:

Le 29 avr. 09 à 12:25, Alastair Houghton a écrit :

Just for the record, with gcc-llvm, you can no longer assume that .o files are Mach-O object files.
When you use Link-Time-Optimization (or -O4) with llvm-gcc (or clang), it produces llvm bytecode (even if the output extension remain .o)

That's a good point. They still aren't COFF though, and you can still link Mach-O objects with the LLVM bitcode. Also, I haven't looked but it wouldn't surprise me to find that the .o files still had a Mach-O wrapper around the bitcode itself.

In fact, they don't.
To handle these files, 'ld' try to load libLTO.dylib which works with llvm bytecode files directly.
You can even manipulate them using llvm tools (you can use llvm-dis on such .o file to get the corresponding llvm assembly for example).


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >C language in obj-c (From: fawad shafi <email@hidden>)
 >Re: C language in obj-c (From: Alastair Houghton <email@hidden>)
 >Re: C language in obj-c (From: Jean-Daniel Dupas <email@hidden>)
 >Re: C language in obj-c (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: NSRunLoop vs. NSThread sleep
  • Next by Date: RE: C language in obj-c
  • Previous by thread: Re: C language in obj-c
  • Next by thread: Re: C language in obj-c
  • Index(es):
    • Date
    • Thread