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

后端 未结 10 1120
陌清茗
陌清茗 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:31

    The second part of your question is easily answered. It is very possible, in fact many C implementations have support, for 64-bit operations using 32-bit code. The C type often used for this is long long (but check with your compiler and architecture).

    As far as I know it is not possible to have 32-bit pointers in 64-bit native code.

提交回复
热议问题