From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tiago Maluta Subject: Re: Assembly in LInux Date: Tue, 27 Jan 2009 08:50:46 -0800 (PST) Message-ID: <220580.25818.qm@web50702.mail.re2.yahoo.com> References: <1f714d50901270812q56266a81x428762ada95e474e@mail.gmail.com> Reply-To: maluta_tiago@yahoo.com.br Mime-Version: 1.0 Return-path: In-Reply-To: <1f714d50901270812q56266a81x428762ada95e474e@mail.gmail.com> Sender: linux-c-programming-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-c-programming@vger.kernel.org, Jai Sharma --- On Tue, 1/27/09, Jai Sharma 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