• 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: [Q] including omp.h?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] including omp.h?


  • Subject: Re: [Q] including omp.h?
  • From: Sean McBride <email@hidden>
  • Date: Sat, 06 Aug 2011 13:36:00 -0400
  • Organization: Rogue Research Inc.

On Sat, 6 Aug 2011 12:25:39 +0200, Marcus Karlsson said:

>>>>> Apple may ditch gcc but that doesn't mean that users have to.
>>>>
>>>> Do you really have a practical choice?
>>>
>>> Yes you have. Why wouldn't you? A compiler is not different than any
>>> other software. It takes source code and produces executable code. That
>>> code may link to other executable code contained in libraries. As long
>>> as all libraries are available at run time the program will run. Other
>>> than things like varying degrees of optimization there's no difference
>>> between code produced by one C compiler and code produced by another.
>> While I don't really disagree with you, I get the impression you've
>> never compiled GCC and GDB for an Apple system. No corporate support
>> makes things difficult at best.
>>
>I wouldn't usually respond to something like that but since you took it to
>the list. Yes I actually have to compile it myself since I do a fair amount
>of Fortran and it's not enabled in Apple's release of gcc.
>
>No one mentioned the requirement of corporate support but if that's
>something you need then I suggest using a commercial compiler such as the
>Intel or Portland compiler suite.

This is the Cocoa list, isn't it?  Neither icc nor Portland Group's compilers support Obj-C.  And although current versions of gcc support Mac and Obj-C, do they support the newest features Apple is always adding to the language?  ex: does gcc support ARC, 'strong', and 'weak'?

This is a disadvantage of not having an ISO standard for Obj-C, I'm sure it discourages other compiler vendors from supporting the language.

As such, practically speaking, it's hard to use anything but the compilers Apple provides.

If you keep your OpenMP code isolated to a few files, you could compile them with gcc, and the rest of your app with clang.

I too would like to try gcc 4.7 on my code base.  If for no other reason that to get some different warnings, etc.  But, though I've searched a bit, it seems building gcc is a PITA, and I've not found any Mac binaries.

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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: 
 >Re: [Q] including omp.h? (From: Sean McBride <email@hidden>)
 >Re: [Q] including omp.h? (From: Marcus Karlsson <email@hidden>)
 >Re: [Q] including omp.h? (From: Jeffrey Walton <email@hidden>)
 >Re: [Q] including omp.h? (From: Marcus Karlsson <email@hidden>)
 >Re: [Q] including omp.h? (From: Jeffrey Walton <email@hidden>)
 >Re: [Q] including omp.h? (From: Marcus Karlsson <email@hidden>)

  • Prev by Date: Re: [Q] including omp.h?
  • Next by Date: Re: Asynchronous downloading and parsing of XML
  • Previous by thread: Re: [Q] including omp.h?
  • Next by thread: Re: [Q] including omp.h?
  • Index(es):
    • Date
    • Thread