[fpc-pascal] Does the compiler make prodigious use of use ENTER instruction?

Anthony Walter sysrpl at gmail.com
Tue Dec 12 17:48:57 CET 2023


Iwas reading this article today on the Microsoft website about the
mysterious x86 ENTER instruction. The article states that it's primary
purpose is to support Pascal and similar compilers to allow for
preserving local variables on the stack when using with nested functions.

Here is the article:

https://devblogs.microsoft.com/oldnewthing/20231211-00/?p=109126

Do any of the compiler devs know if Pascal programs for the x86
instruction set are using ENTER and its second argument to the best
possible effect? I am curious.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20231212/827c450b/attachment.htm>


More information about the fpc-pascal mailing list