Live data from Hacker News

ARM Assembly Language Programming

arm.com

1–10 of 40 posts

Re: ARM Assembly Language Programming

#5
Thanks, this seems like a nice book.

As it happens, I've been learning ARM assembly in the recent weeks; just for fun so far. I've mostly used some instruction set references or ARM cheatsheets I found on the web.

Having written mostly m68k assembly before (well, 6502 too...) I knew a bit how to read ARM assembly but I wanted to learn it throughoutly and gain such insight into the instruction set that can only be achieved by writing non-trivial programs with it. Before that I wanted to learn x86 assembly but I soon gathered I'll have better use for my time than that.

I like ARM instruction set quite a lot: it's nicely coherent, has nicely orthogonal features (such as conditional instructions), and doesn't seem to be ridden with despicable backwards-compatibility hacks like x86 assembly.

I like that for once something as good as this has significant marketshare in mobile cpus. Just wondering if they could gradually creep into the market for desktop cpus as well.

Re: ARM Assembly Language Programming

#7
post #5

Thanks, this seems like a nice book. As it happens, I've been learning ARM assembly in the recent weeks; just for fun so far. I've mostly used some instruction set references or ARM cheatsheets I found on the web. Having written mostly m68k assembly before (well, 6502 too...) I knew a bit how to read ARM assembly but I wanted to learn it throughoutly and gain such insight into the instruction set that can only be ach…

A word of warning. Get in the habit of thoroughly commenting your assembly early on, or you likely never will. If you start by commenting too much, you can gradually bring it down. If you start commenting sparsely (or like me, not at all), it's considerably more difficult to increase it.

That said, you picked a good first ISA to learn seriously. ARM has some very cool features, even if it does have its serious faults (poor floating point/vector support, even where it's available). Learning x86 will be trivial from there; the only difficult thing is knowing what the side-effects of functions are, as x86 is horribly inconsistent in that regard.

Good luck!

Re: ARM Assembly Language Programming

#8
I have a particular fondness for ARM assembly. It's a beautiful instruction set, with a minimal elegance and internal consistency.

My only experience of a "normal job" was between school and university, writing import/export filters for a DTP application written entirely in ARM assembly. It was quite a year.

If you want to get into ARM assembly, this is the original and best:

http://www.peter-cockerell.net/aalp/

I still have one of the original paper copies. 1987 was a long time ago, but the legacy of those heady years is still strong.

Re: ARM Assembly Language Programming

#10

[pdf]

Isn't that true of everything that comes from scribd?

It doesn't come from scribd. scribd automatically scrape every PDF they find and put it on their site. They do this without considering that many of the PDFs have copyright notices, and require the copyright holder to pay a lawyer to issue a formal C&D before they do anything about it.

I think what they do is reprehensible and I think they're scum. I don't know why the powers that be at HN automatically add the link to scribd.

Post reply on HN