Think about it:
CPU's are known to be able to make decisions.
The best decision would be:
- if 32 bit required run the application sections in 32 bit mode at full speed.
- if 64 bit required run the application sections in :
2.1. 64 bit emulation for 32 bit systems.
or
2.2 real 64 bit for 64 bit systems if available.
Further requirement:
- Keep the source code as much the same as possible.
This is impossible with todays architecture.
Which means:
I must still re-write my software.
How much effort this is remains to be seen, it's definetly not FREE and it's definetly not that trivial.
All 32 bit integers have to be converted to 64 bit integers.
And then the software has to be RE-TESTED which requires lot s of time.
Also the compilers have to be modified and tested as well and might generate bugs.
Then software has to be redistributed etc.
Definetly not FREE !
Maybe in the future languages will have "generics" or something so that the same code can easily re-compile to different integers.
Without actually having to re-test all that much, otherwise it's useless.
I have to be absolutely certain that no matter what is generated for the generics it really works as it's supposed.
C++ Templates won't do... those generate C++ code... I like to be able to debug my code, and know for sure what code is written.
I don't even program in C++, it's just an example.
Sure some people will say it's possible to debug templates... how much effort does that cost huh ?!
All I am saying is:
Converting 32 bit software to 64 bit software definetly requires much effort ! More effort than should be really necessary !
Bye, Skybuck.