admin管理员组文章数量:1127905
Is it possible to write x86 (32 bit) assembly on a raspberry pi (5, if the board type matters) which is running Raspberry Pi OS? Now, I am aware that Raspberry pi is built on the ARM architecture, but I believe I can use QEMU to actually run the executable by emulating an x86 processor.
I am successfully able to compile the code (using nasm to assemble a file called 'hello.asm' -> hello.o), but I am having difficulty linking. For example,
gcc -m32 -o hello hello.o
attempting to link and target a 32 bit architecture gives me: "Unrecognized Command-Line argument '-m32'"
Has anyone tried this/have a workaround?
本文标签: Writing 32bit x86 assembly on Raspberry piStack Overflow
版权声明:本文标题:Writing 32-bit x86 assembly on Raspberry pi - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736708379a1948803.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论