From: Tiago Maluta <maluta_tiago@yahoo.com.br>
To: linux-c-programming@vger.kernel.org, Jai Sharma <jai.unix@gmail.com>
Subject: Re: Assembly in LInux
Date: Tue, 27 Jan 2009 08:50:46 -0800 (PST) [thread overview]
Message-ID: <220580.25818.qm@web50702.mail.re2.yahoo.com> (raw)
In-Reply-To: <1f714d50901270812q56266a81x428762ada95e474e@mail.gmail.com>
--- On Tue, 1/27/09, Jai Sharma <jai.unix@gmail.com> wrote:
> Dear friends,
>
> With all of your help and my motivation, I am to do
> application
> programming in Linux using C.
> I made some local intranet applications for my company
> using CURL,
> MySQL, Pipe, and gnuplot.
>
> But now I want to do some system programming under Linux.
> For that
> purpose I need to study
> Assembly Language.
>
> I am studying two books to make programs using Assembly
> Language:
>
> 1. Assembly Language Step-by-Step: Programming with DOS and
> Linux,
> Second Edition
> 2. Art of Assembly
>
> I need your help to understand Assembly Language for Linux.
> If you guys have some links or documentation.
> Then please share with me. I am great thankful to you.
>
1) About Inline Assembly for x86 in Linux
http://www.ibm.com/developerworks/linux/library/l-ia.html?dwzone=linux
2) Syntax issues: Intel vs. AT&T
http://asm.sourceforge.net//articles/linasm.html
http://www.imada.sdu.dk/~kslarsen/dm18/Litteratur/IntelnATT.htm
3) Links, articles, docs...
http://asm.sourceforge.net/resources.html#docs
4) If you like see assembly generated by GCC use "--save-temps" option.
In this case the assembly output will be different from first aproach by "humam" asm code, a lot of optimization and heavy use of stack, but it's interessing take a look.
#gcc --save-temps foo.c -o foo
#vi foo.s
Best regards,
--
Tiago Maluta
prev parent reply other threads:[~2009-01-27 16:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-27 16:12 Assembly in LInux Jai Sharma
2009-01-27 16:50 ` Tiago Maluta [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=220580.25818.qm@web50702.mail.re2.yahoo.com \
--to=maluta_tiago@yahoo.com.br \
--cc=jai.unix@gmail.com \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).