Expanded CPU* architecture directives: - #27
Conversation
boramis
commented
Apr 13, 2026
- Added new CPUINTEL symbol for any of I8086, I386, or x86-64.
- Added CPUARM and CPUARM64 symbols in the FPC path to match Delphi's symbols.
- Replaced documented CPUx86_64 conditional with CPUX64. Delphi and Free Pascal both define both symbols nowadays, but the JCL/JVCL only ever use CPUX64.
|
The |
- Added new CPUINTEL symbol for any of I8086, I386, or x86-64. - Added CPUARM and CPUARM64 symbols in the FPC path to match Delphi's symbols. - Replaced documented CPUx86_64 conditional with CPUX64. Delphi and Free Pascal both define both symbols now, but the JCL/JVCL only use CPUX64 already.
|
My suggested changes are as follows:
The following are open questions for discussion:
|
|
Regarding |
|
|
FWIW, I'd rather have one PR that works on all this as we have reached some sort of an agreement here. |
|
@obones What is your opinion on the changes suggested above? |
|
Well, it's all a bit confusing with #28 and I'm not sure what to think of the As to the others, I'd define all the possible ones, even if not used already, trying to "bridge the gap" between FPC and Delphi when one defines a symbol the other does not. https://docwiki.embarcadero.com/RADStudio/Florence/en/Conditional_compilation_(Delphi)#Predefined_Conditionals This may not help the debate over But my desire is here, bridge the gap between the main two compilers around. Oxygene is a different beast altogether, but it should not be forgotten. |