Porting to 64-bit Linux
An anonymous reader writes "As 64-bit architectures continue to gain popularity it is becoming more and more important to make sure that your software is ready for the shift. IBMDeveloperworks takes a look at a few of the most common pitfalls when making sure your applications are 64-bit ready. From the article: 'Major hardware vendors have recently expanded their 64-bit offerings because of the performance, value, and scalability that 64-bit platforms can provide. The constraints of 32-bit systems, particularly the 4GB virtual memory ceiling, have spurred companies to consider migrating to 64-bit platforms. Knowing how to port applications to comply with a 64-bit architecture can help you write portable and efficient code.'"
From 32bit to 64. It answers itself. Just double everything you se. Consider the following:
// In 64 bits, you use 10+10
void arsle () {
std::cout 5+5;
}
Now many people say: Thats not correct, but wait!
Since the display we use today are the same as we used in 32-bit systems, de data sent from the computer to the display is divided by 2. Therefore (32bit)5+5 = (64bit)10 + 10. At least visually. The things that happen inside the computer are far more complex. It is the same principles though