[fpc-pascal] why fpc do not use a known return function value
jeppe at j-software.dk
Tue Feb 3 11:01:28 CET 2015
Constant propagation won't work on global variables in fpc because they currently are always considered volatile.
------ Oprindelig besked------Fra: Jonas MaebeDato: tir., 3. feb. 2015 10:24Til: FPC-Pascal users discussions;Emne:Re: [fpc-pascal] why fpc do not use a known return function value
On 02/02/15 13:56, misu kun wrote:> in this program test function has a known return value , and should be> calculated in compile time , but fpc make it in real time !!!Constant propagation is a new feature in the upcoming FPC release:http://wiki.freepascal.org/FPC_New_Features_Trunk#Constant_propagationJonas_______________________________________________fpc-pascal maillist - fpc-pascal at lists.freepascal.orghttp://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal