[fpc-devel] Does FPC optimize unused parameters ?

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Aug 8 16:51:59 CEST 2012


Martin wrote on Wed, 08 Aug 2012:

> That makes me wonder how inlining works? Doesn't inlining need to  
> know the body?

Yes. Before the body is known, an "inline" function does not get  
inlined. That's why units are sometimes recompiled even if you don't  
change anything, because in case of circular (implementation) unit  
references, more inline bodies may be known during subsequent  
compilations.


Jonas



More information about the fpc-devel mailing list