How to detect if a 32-bit or 64-bit architecture in Pascal

1 Answer

0 votes
program Architecture32bitOr64bit;

begin
  {$ifdef cpu64}
  WriteLn('64-bit');
  {$endif}
  {$ifdef cpu32}
   WriteLn('32-bit');
  {$endif}
end.



(*
run:

64-bit

*)

 



answered Jun 20, 2025 by avibootz

Related questions

2 answers 102 views
1 answer 97 views
1 answer 118 views
1 answer 79 views
...