[fpc-pascal] When the variable freed in Optimize compile
parmaja at gmail.com
Wed Jun 8 12:37:47 CEST 2011
On Wed, Jun 8, 2011 at 11:22 AM, <michael.vancanneyt at wisa.be> wrote:
> On Wed, 8 Jun 2011, Zaher Dirkey wrote:
> Hi, I know when compile the project with optimize in Delphi the variable
>> freed/allocated after the last line used.
>> How can i make same in FPC, O3 not worked for me.
>> I used FPC 2.4.4
>> c: Currency;
>> c := 10;
>> <<now c freed
>> some code here
> C (as a currency) is never 'freed'. It is declared throughout the whole
What if C is string or Interface of TInterfacedObject?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal