Recent

Author Topic: List of FPC intrinsic  (Read 943 times)

Okoba

  • Hero Member
  • *****
  • Posts: 555
List of FPC intrinsic
« on: October 01, 2023, 05:35:14 pm »
Hello,

Where can I find a list of FPC intrinsic?
I know a couple like SizeOf or GetTypeKind but what are the others?
   

 
   

 

jamie

  • Hero Member
  • *****
  • Posts: 6735
Re: List of FPC intrinsic
« Reply #1 on: October 01, 2023, 06:18:54 pm »
Be careful what you ask for...

Open the help (RTL), third tab, type in "BITS" hit enter.

that's a start on intrinsic low-level stuff.
The only true wisdom is knowing you know nothing

Okoba

  • Hero Member
  • *****
  • Posts: 555
Re: List of FPC intrinsic
« Reply #2 on: October 01, 2023, 06:26:57 pm »
What do you mean by that? I searched "BITS" in "(RTL) Runtime Library" and the result is "TBits.Bits" documentation. It seems that is not the what I want.

Kays

  • Hero Member
  • *****
  • Posts: 613
  • Whasup!?
    • KaiBurghardt.de
Re: List of FPC intrinsic
« Reply #3 on: October 01, 2023, 08:28:06 pm »
[…] Where can I find a list of FPC intrinsic? […]
There is no such compiled list. You can check out the FPC source code though. Furthermore look for internproc in the RTL source code.
« Last Edit: October 01, 2023, 08:30:10 pm by Kays »
Yours Sincerely
Kai Burghardt

simone

  • Hero Member
  • *****
  • Posts: 626
Re: List of FPC intrinsic
« Reply #4 on: October 01, 2023, 08:57:48 pm »
You can take a look at the system.fpd file, which contains a list of fictious declarations for compiler intrinsics, used by fpdoc. Among these you can find those related to SizeOf and GetTypeKind

The file has the following path in my machine:

\lazarus\fpc\3.2.2\source\rtl\inc.

Alternatively, look here:

https://gitlab.com/freepascal.org/fpc/source/-/blob/main/rtl/inc/system.fpd
« Last Edit: October 01, 2023, 09:15:09 pm by simone »
Microsoft Windows 10 64 bit - Lazarus 3.0 FPC 3.2.2 x86_64-win64-win32/win64

 

TinyPortal © 2005-2018