ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi there iam trying to start reading linux assembly but i am really confused. I am trying to see what i must follow, something like a standars.
For example so many programs nasm,yasm,*asm,*asm* with different syntax and different operations. I want to know what is the most popular of them and where i must turn my attention
moved to the Programming forum
Last edited by mcleodnine; 11-14-2003 at 03:51 AM.
The most used one has to be the "as" program. The GNU Compiler translates C into Asm and then hand it over to "as" to create the objectfiles that later can be linked with "ld". If you want to look at the syntax, the easyest way is actualy to compile a very simple C program, but tell the compiler to output the assembler data as files instead of objectfiles.
This command:
gcc -S mytest.c
Will result in the files mytest.s (This is the assembly file)
by worldmagic The most used one has to be the "as" program
is it? i thought it wasnt designed for human use and is a real pain in the ass to use? but i might be wrong. if you like intel syntax then i would reccomend nasm, if you prefer AT&T syntax then the only assembler i know of is as but im sure there are more, check out the linux assembly howto hosted on tldp.org somewhere.
Oh yeah, just remembered, while one of the biggest reasons
to learn at&t syntax has been that gcc can output the compilation
of C program in it so you can study the code it generates. Since
version 3.0 GCC also puts out assembly language in intel format
with the -mintel-syntax switch...
with intel you dont need the cast unless storing/load from memory location, AT&T has a cast with each instruction as it must be postfixed with with either b, w, or l also AT&T has $ and % everywhere wheras intel doesnt which makes it easier to read, as for src, dest or dest, src i think that should be left to usenet wars.
A conclusion? What to decide? Do u know any visual debugger like code view . I want to view the values of the registers.....
Info about debuggers?
Thx guys
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.