* Assembly in LInux
@ 2009-01-27 16:12 Jai Sharma
2009-01-27 16:50 ` Tiago Maluta
0 siblings, 1 reply; 2+ messages in thread
From: Jai Sharma @ 2009-01-27 16:12 UTC (permalink / raw)
To: linux-c-programming
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.
Thanks and Regards
Jai
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Assembly in LInux
2009-01-27 16:12 Assembly in LInux Jai Sharma
@ 2009-01-27 16:50 ` Tiago Maluta
0 siblings, 0 replies; 2+ messages in thread
From: Tiago Maluta @ 2009-01-27 16:50 UTC (permalink / raw)
To: linux-c-programming, Jai Sharma
--- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-27 16:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-27 16:12 Assembly in LInux Jai Sharma
2009-01-27 16:50 ` Tiago Maluta
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).