Are there any guidelines how to transit to x64 with as little pain as possible?
Suppose, I have a windows native x86 executable written in C++. The EXE works fine by itself, but there is also DLL that is hosted by both, the former EXE and an outside x64 process. With setup like this, what parts would I need to rewrite?
I would appreciate a more general answer or maybe a link to a reference where some theoretical background is given. Thanks
In general the approach I recommend is to Unit Test the hell out of it. Build up your tests so that they're all passing on the 32-bit implementation and then start building and testing on 64-bit. It's worth devoting particular attention to any parts of your code where you do any of the following:
size_t
which will now be a different size. Go through this code and change things like size_t
and long
to explicit 32 or 64-bit typedefs)There really are no shortcuts except to test as many code paths as you can. How easy the job will be will depend on how portably the code was written. You might be lucky...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With