[fpc-pascal] why fpc do not use a known return function value

Florian Klämpfl florian at freepascal.org
Tue Feb 3 21:47:59 CET 2015


Am 03.02.2015 um 12:25 schrieb misu kun:
>> mind sharing the C code?
> 
> int c ;
> int test( int p){
>   int i;
>   i = p;
>   return (i+2+c+2+c+2+c);
> }
> int main(){
>   c = test(128);
> }

I do not see why it is worth trying to optimize such code. No well-written real world program
contains code like this.




More information about the fpc-pascal mailing list