ARM PROGRAMMING BY EXAMPLE

The ARM processor is popping up everywhere. From Raspberry Pis, to phones, to Blue Pill Arduino-like boards, you don’t have to go far to find an ARM processor these days. If you program in C, you probably don’t care much or even think about it. But do you know ARM assembly language? Well, if you look at it one way, it can’t be too hard. The CPU only has about 30 distinct operations — that’s why it is called RISC. Of course, sometimes fewer instructions actually make things more difficult. But you can get a great starting tutorial with the 21 programs on the ARM Assembly by Example website.

You need a 32-bit ARMv6 or better — so Raspberry Pi will work here. The compiler, of course, is gcc and all the associated tools. if you have the right hardware, there are sections on using the floating point unit and the NEON co-processor, too.

The first few sections are what you might expect: program basics and a memory map tutorial. But after the obligatory stop at “Hello world”, you’ll find programs like “Find the Otter” and “Hex and Love” (see the video below) to challenge your burgeoning skill.

If you have interest in assembly language, it is an easy way to dip your toe into the ARM waters. If you are more interested in 64-bit Intel/AMD CPUs, we can help. If you want to go bare metal, we’ve been there, too.

Source: ARM PROGRAMMING BY EXAMPLE


About The Author

Muhammad Bilal

I am highly skilled and motivated individual with a Master's degree in Computer Science. I have extensive experience in technical writing and a deep understanding of SEO practices.

Scroll to Top