Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4829

Bare metal, Assembly language • Re: What assembly language should i learn first: arm32 or arm64?

$
0
0
Quite the opposite, the 32-bit PiOS provides substantially better performance than the 64-bit version across all peripherals. As much as 100% using interval timers, PWM, etc...

To the original question, I would learn 64-bit arm first. It's actually easier than the 32-bit variant with all the per-instruction condition codes that can be applied. I did it in reverse, learning 32-bit arm assembly (just due to there not being 64-bit at the time). At first I found the 64-bit assembly awkward because it didn't have the additional 3-bit condition codes for every instruction, but they have done an excellent job making 64-bit assembly just as flexible in a more straightforward way.

Either way you want to do it is fine. The biggest takeaway is 32-bit will spoil you with condition codes, which are not present in every instruction in 64-bit arm.

Statistics: Posted by drankinatty — Tue May 07, 2024 10:07 pm



Viewing all articles
Browse latest Browse all 4829

Trending Articles