0

C language variable types

In c language all data types has a byte value, most of them constant values but for long and pointer it says 4 or 8 depending on the system and compiler. In this one I know what the system diffrence is (32 bit / 64bit) but what does compiler diffrence means. Can someone explain

29th Mar 2024, 5:49 AM
Lalala
Lalala - avatar
3 Respuestas
+ 1
A compiler that was developed for a 32-bit system can run on a 64-bit computer (if the 64-bit architecture provides downward compatibility), but it will generate only 32-bit executables.
29th Mar 2024, 5:57 AM
Brian
Brian - avatar
+ 1
Correct Lalala, though to hone the point I would say it is about the compiler's target system architecture, versus the system architecture where the compiler is running. That also accounts for cross compiling on a larger machine for a smaller target machine.
29th Mar 2024, 1:03 PM
Brian
Brian - avatar
0
Brian so rather than the Compiler it still is about the systems bit architecture
29th Mar 2024, 6:44 AM
Lalala
Lalala - avatar