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: 259
Rept. Given: 75
Rept. Rcvd 85 Times in 38 Posts
Thanks Given: 141
Thanks Rcvd at 335 Times in 113 Posts
Fyyre Reputation: 85
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