View Single Post
  #11  
Old 01-03-2011, 03:55
Fyyre's Avatar
Fyyre Fyyre is offline
Fyyre
 
Join Date: Dec 2009
Location: 0°N 0°E / 0°N 0°E / 0; 0
Posts: 296
Rept. Given: 106
Rept. Rcvd 94 Times in 44 Posts
Thanks Given: 204
Thanks Rcvd at 406 Times in 131 Posts
Fyyre Reputation: 94
Quote:
Originally Posted by deroko View Post
That's the one I was referring, it can be only set globally, not possible to set inside of a function :)
optimization can set on function to function basis, but not within the function itself. i am thinking you mean this by "globally" ?

i.e.

Code:
#pragma optimize( "", off )

void meow()
{
  /* ... */
}

#pragma optimize( "", on )
Intel-specific Pragma Reference

-Fyyre
Reply With Quote