Intel or AT&T?

Programming, for all ages and all languages.
Locked
arming
Member
Member
Posts: 38
Joined: Sat Dec 10, 2011 6:23 am

Intel or AT&T?

Post by arming »

Which sintax is better to develop, Intel x86 or AT&T x86 (in your opinion)? And which assembler is better (in your opinion)?
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: Intel or AT&T?

Post by Brynet-Inc »

It's spelled syntax. And the choice is yours, obviously whichever is easier for you to understand.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: Intel or AT&T?

Post by AJ »

Hi,
arming wrote:Which sintax is better to develop, Intel x86 or AT&T x86 (in your opinion)? And which assembler is better (in your opinion)?
As with C(++) vs. ASM, Windows vs. Linux, Vim vs. VS etc..., this is generally a way to start a flamewar. I prefer intel syntax because that's what I learned on. Others prefer AT&T for the same sort of reason. Often it just comes down to which way an individual 'pictures' data flowing.
arming wrote:Which sintax is better to develop, Intel x86 or AT&T x86 (in your opinion)? And which assembler is better (in your opinion)?
Define 'better'.

Cheers,
Adam
CrypticalCode0
Member
Member
Posts: 81
Joined: Wed Nov 09, 2011 2:21 am
Location: Behind a keyboard located in The Netherlands

Re: Intel or AT&T?

Post by CrypticalCode0 »

I would say neither but then again i am a motorola fanboy.....
arming
Member
Member
Posts: 38
Joined: Sat Dec 10, 2011 6:23 am

Re: Intel or AT&T?

Post by arming »

AJ wrote:Hi,
arming wrote:Which sintax is better to develop, Intel x86 or AT&T x86 (in your opinion)? And which assembler is better (in your opinion)?
As with C(++) vs. ASM, Windows vs. Linux, Vim vs. VS etc..., this is generally a way to start a flamewar. I prefer intel syntax because that's what I learned on. Others prefer AT&T for the same sort of reason. Often it just comes down to which way an individual 'pictures' data flowing.
arming wrote:Which sintax is better to develop, Intel x86 or AT&T x86 (in your opinion)? And which assembler is better (in your opinion)?
Define 'better'.

Cheers,
Adam
For me, better is... I don't know, it depends. Maybe AT&T it's better to work with net connections (that would be better for me). Well, I'm going to do specified questions:
:arrow: To work with ASM and C, what is better (AT&T or Intel)?
:arrow: AT&T is portable at all the x86? And Intel?
:arrow: Which is easier to learN?
:arrow: Which works better with network?
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: Intel or AT&T?

Post by Kevin »

AT&T vs. Intel is about syntax, not about semantics. You can express exactly the same things in both syntaxes, they look just a bit different. If you think it has anything to do with network or even just if you think that one of them is easier to understand like Brynet seems to imply, you have a more fundamental problem and should go back to learning some basics.

It's purely a matter of taste.
Developer of tyndur - community OS of Lowlevel (German)
arming
Member
Member
Posts: 38
Joined: Sat Dec 10, 2011 6:23 am

Re: Intel or AT&T?

Post by arming »

Kevin wrote:AT&T vs. Intel is about syntax, not about semantics. You can express exactly the same things in both syntaxes, they look just a bit different. If you think it has anything to do with network or even just if you think that one of them is easier to understand like Brynet seems to imply, you have a more fundamental problem and should go back to learning some basics.

It's purely a matter of taste.
OK, I've expressed badly. I know that the two do more or less the same but with different syntax. I want to say that maybe Intel syntax it's easier to do a netboot, for example.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: Intel or AT&T?

Post by AJ »

Hi,
arming wrote:OK, I've expressed badly. I know that the two do more or less the same but with different syntax. I want to say that maybe Intel syntax it's easier to do a netboot, for example.
No - they do exactly the same. To answer your questions:

* They both allow you to interface with C code (for GCC inline assembly, the default is AT&T, but that can be configured on the command line). That's more to do with the ABI.
* They both work with x86 (16 bit / IA32 / AMD64)
* The easiest one to learn is probably whichever one you learn first.
* They can both be used to interface with network devices in the same manner.

These are two dialects which do the same thing - they both get converted to the same opcodes so you end up with the same binary.

Cheers,
Adam
Locked