On 14 Jul 2012, at 20:29, Nico Erfurth wrote:

> So basically, something like
> 
> class MyClass = class
> {$OPTIMIZATION OFF}
>  private
>    FHeavilyUsedValue: Boolean;
>    FAlsoHeavilyUsedValue: DWord;
> {$OPTIMIZATION DEFAULT}
>    NotOftenUsed: Byte;
> end;
> 
> should leave the ordering of the first values alone, while optimizing
> the rest. Or at least disable reordering for the whole class.

Only the setting active at the end of the class declaration (before the "end") 
will have effect. The setting can be changed via {$optimization orderfields} 
and {$optimization noorderfields}, just like all other optimization settings.


Jonas_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to