Converting 32-bit Application Into 64-bit Application in C

前端 未结 9 1128
悲&欢浪女
悲&欢浪女 2020-12-04 17:02

I am presently working on converting a 32bits application into a 64bits application in C. This application is currently working on x86 architecture (Windows, osx, Unix, Linu

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-04 17:26

    One potential problem not already mentioned is that if your app reads or writes binary data from disk (e.g., read an array of structs using fread), you are going to have to check very carefully and perhaps wind up having two readers: one for legacy files and one for 64-bit files. Or, if you are careful to use types like uint32_t and so on from the header file, you can redefine your structs to be bit-for-bit compatible. In any case, binary I/O is a thing to watch out for.

提交回复
热议问题