[fpc-devel] Does FPC optimize unused parameters ?
lazarus at mfriebe.de
Wed Aug 8 16:42:36 CEST 2012
On 08/08/2012 15:37, Jonas Maebe wrote:
> [removing calculation/load of unused parameters]
I assumed that...
>> (or is it possible?
> After the body of the called routine has been parsed, it would be
> possible in theory (with indeed all the caveats the compiler would
> have to take care of such as side effects -- note that these may
> include non-obvious side-effects, such as potential overflow
> exceptions and invalid pointer accesses).
I could have known that. I totally forgot it works on the declaration only.
That makes me wonder how inlining works? Doesn't inlining need to know
More information about the fpc-devel