Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Raspbian contains a 64-bit kernel nowadays, add

arm_64bit=1

to your /boot/config.txt

You now have a 64-bit kernel with 32-bit userland.

It is unclear to me what kind of code gcc now generates with -march=native. If somebody could clear that up, would be very much appreciated ( ie, does it use 31 GPRs ).



If it's a 32bit userland, then you don't have access to the other GPRs. The GPR field in AArch32 instructions is a max of 4 bits, so you can only encode r0-r15.


Thank you. Have been trying to get a 64-bit gcc running, but haven't succeeded yet.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: