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

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

    It's worth noting that there an ABI in development for linux, X32, that lets you build a x86_64 binary that uses 32 bit indices and addresses.

    Only relatively new, but interesting nonetheless.

    http://en.wikipedia.org/wiki/X32_ABI

提交回复
热议问题