[fpc-pascal] How does inline work?

Thierry Coq tcoq at free.fr
Sun Nov 22 15:27:27 CET 2009


Dear All,

Wouldn't it be interesting to document somewhere the requirement that 
inlined procedures need to be implemented BEFORE where they're called if 
it's in the same unit?

Would it be a good idea if I changed the FPC online doc, but where would 
that be, and also Lazarus' as well?

Best regards,
Thierry

Thierry Coq wrote:
> Jonas Maebe wrote:
>> On 22 Nov 2009, at 10:10, Thierry Coq wrote:
>>
>>> I'm trying to use inline to remove unnecessary debugging code, such 
>>> as the following code, with FPC 2.3.1 on Windows, when compiling for 
>>> production.
>>> However when I compile the code, at O1 optimisation level (my 
>>> default), the call to DebugInfo is still present in the generated 
>>> assembler.
>>
>> Always provide a compilable sample with the full compiler invocation 
>> when reporting problems. After guessing how your the full source code 
>> looks and compiling it, the call is removed here:
> Thank you very much. I guessed I was doing something wrong!
>
> Best regards,
> Thierry
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>




More information about the fpc-pascal mailing list