LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-26-2012, 10:52 AM   #1
jessCPP
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Rep: Reputation: Disabled
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!!!
 
Old 06-26-2012, 11:39 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Google .. linux assembler arm ..
http://asm.sourceforge.net/resources.html
> ARM Assembler Programming > http://www.heyrick.co.uk/assembler/
 
Old 06-26-2012, 12:53 PM   #3
Nominal Animal
Senior Member
 
Registered: Dec 2010
Location: Finland
Distribution: Xubuntu, CentOS, LFS
Posts: 1,723
Blog Entries: 3

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
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.
 
1 members found this post helpful.
Old 07-04-2012, 04:36 AM   #4
jessCPP
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you very much!! that solved my problem!
 
Old 08-13-2013, 12:52 AM   #5
dennis714
LQ Newbie
 
Registered: Aug 2013
Posts: 2

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
difference b/w arm-iwmmxt-linux-gnueabi-gcc & arm-linux-gcc ravi_shanker Linux - Software 1 09-12-2011 10:30 AM
Compiling debian arm for NSLU2 - arm-linux-gnueabi-objdump not found ergosteur Linux - Kernel 3 10-30-2010 11:24 AM
Any gnu arm assembly language tutorials? rsyoung Linux - Embedded & Single-board computer 1 06-22-2009 09:30 AM
Compile the linux2.6.14.1 for arm must ues the arm-linux-gcc-3.4.4? frankyue Linux - Embedded & Single-board computer 2 12-20-2008 07:28 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration