[fpc-devel] Successful implementation of inline support for pure assembler routines on x86

Florian Klämpfl florian at freepascal.org
Sun Mar 24 10:49:07 CET 2019

Am 19.03.2019 um 20:17 schrieb J. Gareth Moreton:
> I would have allowed writing to the stack with inline assembly functions if a way could be found to ensure that the
> compiled program behaves the same way whether the function is inlined or called directly (e.g. through a direct CALL or
> a function pointer), which would otherwise require shifting byte offsets depending on if the function return address was
> pushed or not, so I decided to just forbid it completely.
> If you want to inline regular functions with assembler blocks, you'll need the attached bug fixes.  The rest I'll leave
> up to you.
> What is Florian's and your vision for Free Pascal? You already have a cross-platform Object Pascal compiler... what's
> next for it?  Does any of my proposals even have a place in that vision, because honestly I don't know if the following
> is wanted:
> - pure functions
> - XML node dump (compiler debugging feature) - I personally need it for pure functions and for fixing #32913.
> - faster and smarter optimization on x86-64

All of them are in the scope of FPC imo, currently things are time limited though :(

More information about the fpc-devel mailing list