LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   ARM assembly under Linux (https://www.linuxquestions.org/questions/programming-9/arm-assembly-under-linux-4175413479/)

jessCPP 06-26-2012 10:52 AM

ARM assembly under Linux
 
Hi there!!

I need to learn ARM assembly, and I use Linux. Please, could you give me any starting point about how to install it?? I do not pretend that you teach me ARM assembly. Just a link.

thank you very much!!!

knudfl 06-26-2012 11:39 AM

Welcome to LQ.

Google .. linux assembler arm ..
http://asm.sourceforge.net/resources.html
> ARM Assembler Programming > http://www.heyrick.co.uk/assembler/

Nominal Animal 06-26-2012 12:53 PM

If you use Ubuntu, you can install gcc-4.x-arm-linux-gnueabihf if you have an ARM with hardfloat, or gcc-4.x-arm-linux-gnueabi if without. For AVR, there is gcc-avr. These pull in the other necessary packages. I'm sure similar packages are available on just about all Linux distributions.

Why do I suggest a C compiler when you asked about learning assembly? Because writing a bit of C code, and compiling it to the corresponding assembly using the -S flag can be very instructive. If you know C, you'll probably want to dabble with inline assembly to enhance your learning curve. Also, the above packages do install the necessary binutils too for compiling pure assembly source.

Note that the GNU toolchain uses the AT&T syntax, not Intel syntax.

jessCPP 07-04-2012 04:36 AM

Thank you very much!! that solved my problem!

dennis714 08-13-2013 12:52 AM

Another quick introduction to ARM assembly and reverse engineering: http://yurichev.com/writings/RE_for_beginners-en.pdf


All times are GMT -5. The time now is 01:11 PM.