Re: C language dialect and optimization
Re: C language dialect and optimization
- Subject: Re: C language dialect and optimization
- From: Ladd Van Tol <email@hidden>
- Date: Wed, 20 Dec 2006 11:29:57 -0800
On Dec 17, 2006, at 8:50 PM, Luigi Castelli wrote:
Hi there,
I am using X-code 2.4 on a Mac Powerbook Pro 2.16 GHz
Intel Core Duo.
As far as optimization is concerned, does it make a
difference which C standard I am using? I am using C99
(specified as C Language Dialect in the project
settings) because it's the one that allows the most
flexibility. However I am wondering if that comes at
the price of compiling slower code. Would anybody
advise pro or against it? ...does it really make a
difference or it's entirely up to the programmer
taste?
C99 does allow you to use the restrict keyword, which may allow the
compiler to produce better code in some cases. If you're not making
use of C99-specific features, the performance should be basically
identical. For more on restrict, this article offers a fairly
complete explanation:
http://www.cellperformance.com/mike_acton/2006/05/
demystifying_the_restrict_keyw.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden