Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 11-11-2005, 01:47 PM   #1
Registered: Sep 2005
Location: india
Distribution: Fedora Core 2
Posts: 62

Rep: Reputation: 15
Assembly on Linux

Hi all,
Howz life? I want to leran how to program in Assembly on Linux.. I searched for some ebook or related stuff in Google but did nt get sth useful. Some body please help me out by telling me about some useful links for Assembly programming on linux..
Thanx in advance,
Old 11-11-2005, 02:00 PM   #2
Registered: Mar 2004
Location: Massachusetts
Distribution: Debian
Posts: 557

Rep: Reputation: 43
A google for linux assembly returns some useful links. Here's one version of x86 hello world for gcc (gas assembler):

13:54 aluser@alf:~/asm$ cat helloworld.s

        .asciz "Hello, World!\n"

        .globl main
        push %ebp
        movl %esp, %ebp
        pushl $msg
        call printf
13:54 aluser@alf:~/asm$ gcc -o helloworld helloworld.s 
13:54 aluser@alf:~/asm$ ./helloworld 
Hello, World!
13:54 aluser@alf:~/asm$
There are of course many ways to skin the same cat.
Old 11-12-2005, 02:04 AM   #3
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
A great book is:

The Art of Assembly, Randall Hyde

The author, (who's apparently a professor at my Alma Mater ;-)) also has a great web site devoted to assembly:

'Hope that helps .. PSM


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
64-bit Assembly Compiler for Linux? ace_bandit_1 Linux - Software 1 05-13-2005 04:52 PM
How to start programming assembly in Linux? lowpro2k3 Programming 3 04-05-2005 01:10 AM
x86 assembly programming in Linux XsuX Programming 9 12-01-2004 10:45 AM
assembly programming in linux chriscoelphoto Linux - Newbie 2 05-02-2004 06:21 PM
Linux assembly Creep Programming 9 01-29-2004 05:40 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:40 PM.

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