LinuxQuestions.org
Visit Jeremy's Blog.
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 11-11-2005, 01:47 PM   #1
asahlot
Member
 
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,
Regards,
 
Old 11-11-2005, 02:00 PM   #2
aluser
Member
 
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):

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

msg:
        .asciz "Hello, World!\n"

.text
        .globl main
main:
        push %ebp
        movl %esp, %ebp
        pushl $msg
        call printf
        leave
        ret
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
paulsm4
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
http://www.bookpool.com/sm/1886411972

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

http://webster.cs.ucr.edu/

'Hope that helps .. PSM
 
  


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
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

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

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration