Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

It's possible to make a source code 32 or 64 bit only?

As my understanding, I can compile my C code into 32bit binary or 64bit easily, but, some open source projects sais "We don’t support 32bit CPU", so why? what makes the code source 64bit only?

I already checked many topics, questions & responses, but all are related to the OS, CPU, and the compiled binary files. While my question is related to the code source itself.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The instruction sets of CPUs will vary, and the instructions available will vary depending on the mode it’s running in. The program might rely on larger integers provided in 64-bit mode, or it might have assembler that uses 64-bit instructions.

The different modes of operation also have different memory models. For example, a 32-bit Windows program can address 4 GiB of memory (a huge chunk of which it can’t even use). On the other hand, a 64-bit Windows program can access virtually unlimited memory.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading