+ 1

What are the advantages and disadvantages of compiling a program in C with saving it in 32 bites or 64 bits ?

3rd Mar 2018, 8:01 PM
Kimiya Nayyeri
Kimiya Nayyeri - avatar
4 Answers
+ 2
Most applications will run in 32-bit mode as they require less than 4GB of RAM (your computer's temporary memory). If you need more than 4GB of RAM for some reason, use a 64-bit Compiler but NOTE 64-bit applications WILL NOT exacute on a 32- bit OS.
3rd Mar 2018, 9:08 PM
josh mizzi
josh mizzi - avatar
+ 1
thanks.is that all ? any other advantage or disadvantage?
4th Mar 2018, 7:34 AM
Kimiya Nayyeri
Kimiya Nayyeri - avatar
0
Also 64 bit applications​ will run faster, but require more ram and have a bigger file size. 32 bit will only run on 64 bit OS if the OS is built to handle it.
4th Mar 2018, 2:41 AM
Jared Bird
Jared Bird - avatar
0
Those are the main things​. I think 64 bit applications​ can perform operations on 64 bit integers quicker and more efficiently​. There are extra features in the 64 bit instruction set, but you wouldn't​ notice this unless coding in assembly. There is better in built security when compiling to 64 bit. This talks about some of the security benefits: https://www.howtogeek.com/56701/htg-explains-whats-the-difference-between-32-bit-and-64-bit-windows-7/
4th Mar 2018, 8:39 AM
Jared Bird
Jared Bird - avatar