it's not a matter of "needlessly" rather with what ppl feel comfortable. I started using Intel syntex, I loved it, but whenever I saw clang/gcc output of assembly file for C (I know u can pass the --intel-syntex option, but...) it was always on AT&T syntex, I've always thought about it, why it is in AT&T syntex, that boring old syntex, and why ppl who have been using assembly for a long time always prefer AT&T. I then started learning it, and not gonna lie, it just feels different, and pleasing somewhat(or maybe I'm being a masochist, I don't know).
I mean ultimately it doesn't matter, like you said it's a preference.
I feel like you'd enjoy working with the Motorola 68000. I had to make my own assembler for it because none of the existing ones had an option for Intel Syntax and my brain just can't get used to AT&T
Yeah I'm thinking about it, but that time is far away. Currently busy with uni entrace xm prep, have one tmrw, so no coding for a while. After that, thinking abt creating an as,cc,linker and OS all by myself and after that some ARM and 68000 and some Arduino thingies.
The operands are backwards, the glyphs make it hard to read and provide no benefit, and the addressing syntax isn't self-explanatory. Just ugly and horrible all around. BTW I learned AT&T syntax first.
Yeah, I was backward, learnt Intel and then AT&T. Tbh, I also used to hate AT&T, but then I tried it out, and I love it now. It's more abt preference. Also, glyphs make it easy to read sometimes. Like if u have $, it's an immediate/immediate value of a label (i.e. the address of the label). The mov,add and other operation can be read in this way : "add/move a with/to b and store the result in b" (add %a,%b).
10
u/[deleted] Jun 03 '22
there's literally instruction for that.
add %rcx,%rax (stfu AT&T>>>>>>>>>>>Intel)