Chronicles of the Crusades: Intel vs ATT

Programming, for all ages and all languages.
Locked
quok
Member
Member
Posts: 490
Joined: Wed Oct 18, 2006 10:43 pm
Location: Kansas City, KS, USA

Chronicles of the Crusades: Intel vs ATT

Post by quok »

Combuster wrote:<insert propaganda against AT&T syntax>
There's no need for propaganda wars. :)

I don't care for either syntax honestly. Hell I don't even really like asm to begin with. I simply prefer to use GNU as over anything else as it's already part of binutils. I find it easier to use one toolchain than require potential users of my OS to have all sorts of tools (and perhaps have to play dependency hell) just trying to get the darn thing to compile!

I guess it's for that reason that I prefer AT&T syntax. There is the '.intel_syntax' or whatever statement though, that'll allow GNU as to use what you may be more familiar or happier with. That either wasn't available when I picked up ASM or more likely I didn't know about it. And you can't teach this old dog new tricks. ;)
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Intel to ATT Syntax: jmp

Post by Troy Martin »

Sixteen-bit Intel
Syntax assembly is the
winner of the war.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
CodeCat
Member
Member
Posts: 158
Joined: Tue Sep 23, 2008 1:45 pm
Location: Eindhoven, Netherlands

Re: Intel to ATT Syntax: jmp

Post by CodeCat »

I've no real preference for either syntax, but I do think AT&T syntax has some features (like sigils to mark registers and immediates explicitly) that are good. The source-destination order is confusing though.
quok
Member
Member
Posts: 490
Joined: Wed Oct 18, 2006 10:43 pm
Location: Kansas City, KS, USA

Re: Intel to ATT Syntax: jmp

Post by quok »

As I tried to say in my post above (despite going a bit OT in my reply to combuster), you don't need to switch to AT&T syntax just to use GNU as, so those that prefer intel syntax or simply don't care but want to use GNU as to reduce dependencies on a certain toolchain can throw in '.intel_syntax' at the top of the file as needed.
CodeCat wrote:The source-destination order is confusing though.
I don't really care for the source-destination order of AT&T syntax either. I have the belief that since the C standard prefers dest - src ordering (just look at the prototype for memcpy to see what I mean), everything else should as well. :lol: As wrong as it may be, I know a couple of people that would agree with me. :-D
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Chronicles of the Crusades: Intel vs ATT

Post by Combuster »

In any case this discussion is not helpful to the OP and is only bound to start holy wars.

Topic split and archived.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Locked