[fpc-devel] fpc_ compilerproc

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Jun 25 14:41:47 CEST 2025



On 6/25/25 08:42, J. Gareth Moreton via fpc-devel wrote:
> If I'm right in thinking, things like "fpc_abs_real" are fallback 
> functions that have to be overridden by a platform-specific 
> implementation, and return runtime errors if they aren't implemented. In 
> many cases, such internal compiler routines are not called at all 
> because there's a direct instruction available in the architecture (e.g. 
> for integer min and max functions, AArch64 has SMIN and SMAX 
> respectively, but x86 doesn't have such direct operations).

Thanks.

Btw, the "compilerproc" modifier is still not documented. Google found 
my post from 8 years ago asking a similar question. 🙃

Maybe add a sentence: A compilerproc's symbol gets hidden at the Pascal 
level and can't be called manually.

Mattias



More information about the fpc-devel mailing list