Check if program was compiled for 32 or 64 bits

2

Good afternoon, I'm setting up my fpc here for cross-compilation and would like to make sure it is working properly, I want to do a test program and compile on each platform, then check if each executable has been compiled to the correct platform.

In C ++ I used the result of sizeof(void*) (as per comments for this question ) as the base , but I do not know if there is an exact equivalent in Pascal.

So what is the best way to programmatically detect under what type of CPU the executable is running (not what type of OS)?

    
asked by anonymous 23.10.2017 / 20:27

0 answers