I am presently working on converting a 32-bit application into a 64-bit application in C. This application is currently working on x86 architecture (Windows, osx, Unix, Linux). So, before starting coding, I wanted to know what do I need to consider while converting the application.
I am presently working on converting a 32-bit application into a 64-bit application in
Share
LONGis notlong.(int)&xcasts and typing withintptr_tand(unsigned int)&xwithuintptr_tchar*to do pointer arithmetic with it.4 = sizeof(void*)#ifdef RUN64or anything similar. You’ll regret it if 128-bit platforms ever go into vogue.EDIT added
uintptr_tnote as suggested by comment.