Can a C compiler generate an executable 64-bits where pointers are 32-bits?

后端 未结 10 1138
陌清茗
陌清茗 2021-02-12 16:51

Most programs fits well on <4GB address space but needs to use new features just available on x64 architecture.

Are there compilers/platforms where I can use x64 regi

10条回答
  •  独厮守ぢ
    2021-02-12 17:20

    I'm afraid that if you are concerned about the size of pointers you might have bigger problems to deal with. If the number of pointers is going to be in the millions or billions, you will probably run into limitations within the Windows OS before you actually run out of physical or virtual memory.

    Mark Russinovich has written a great article relating to this, named Pushing the Limits of Windows: Virtual Memory.

提交回复
热议问题