How come a 32 bit kernel can run a 64 bit binary?

前端 未结 6 1962
太阳男子
太阳男子 2021-02-02 10:09

On my OS X box, the kernel is a 32 bit binary and yet it can run a 64 bit binary. How does this work?

cristi:~ diciu$ file ./a.out
./a.out: Mach-O 64-bit executable x         


        
6条回答
  •  抹茶落季
    2021-02-02 10:16

    Note that not all 32-bit kernels are capable of running 64-bit processes. Windows certainly doesn't have this property and I've never seen it done on Linux.

提交回复
热议问题