:: Re: [DNG] OT: Assembly resources
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Emiliano Marini
Date:  
À: Mitt Green
CC: Dng
Sujet: Re: [DNG] OT: Assembly resources
Honestly, I use yasm because it was Teacher's choice before I was a
Teaching Assistant. Anyways, yasm supports gas and nasm syntax, and
multiple binary object formats. yasm/nasm use a syntax similar to Intel's,
and gas uses a syntax similar to AT&T. It's a matter of taste but, to me,
AT&T it's less readable. Check this page:

http://www.imada.sdu.dk/Courses/DM18/Litteratur/IntelnATT.htm

I think you should pick the one with the syntax more comfortable to you.
But be aware that gas is the one GCC uses for in-line assembly embedded in
C programs. So, if you are planning to embed assembly instructions in C
code, you will need to learn gas syntax.

Check this other page for more info:
https://en.wikibooks.org/wiki/X86_Assembly/x86_Assemblers

Maybe yasm/nasm (Intel's syntax) is more adequate to learn/teach assembly,
and gas to production (again, if you are planning to embed assembly in C
programs, and you are using GCC).

Thanks for sharing those links.

Cheers,
Emiliano.

On Tue, Mar 1, 2016 at 5:10 PM, Mitt Green <mitt_green@???> wrote:

> Emiliano Marini wrote:
>
>
> >I teach assembly, but x86. I use yasm to compile and ddd to debug.
>
> >You can start with this:
>
>
> [...]
>
>
> Thank you, sir, that's galore. I myself found asm.sourceforge.net
> and dugan from LQ recommended me http://programminggroundup.blogspot.ca/
>
> Why do you use yasm? If we consider the three, gas, nasm and yasm,
> which one is, say, preferred by many and why?
>
>
> Mitt
>
> P.S. Accidentally sent this to dng dash request at lists dot dyne dot org.
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>