简体   繁体   中英

Armv6 Assembler for Mac

I am following this tutorial on operating system development for the raspberry pi. http://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/ok01.html

I am using a Mac, so it suggests using the Yagarto packages for assembling the code. However, they do not seem to work. I installed it multiple times to check.

I want to know if there is an alternative assembler for Mac and how to use it to create the .img file to use as the kernel for the pi.

You can use Xcode for that - if you install xcode, the "iPhone SDK" compiler is really a cross compiler for i386, x86_64 and - ARM.

${whereever_you_put_xcode}/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/as -arch armv6

will do the trick: specifically, it will execute

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/../libexec/as/arm/as

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM