Sujet : Re: Why VAX Was the Ultimate CISC and Not RISC
De : terje.mathisen (at) *nospam* tmsw.no (Terje Mathisen)
Groupes : comp.archDate : 11. Mar 2025, 22:41:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vqqamt$26g0n$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0 SeaMonkey/2.53.20
Scott Lurndal wrote:
mitchalsup@aol.com (MitchAlsup1) writes:
On Tue, 11 Mar 2025 6:14:31 +0000, BGB wrote:
>
A low of people swear by:
movl %eax, 16(%rdi)
....
>
More swear at it than for it.
>
Most likely: those who swear by it have brain damage by x86-ism.
It's the oververbose, bas-ackwards intel syntax that one does swear at.
The AT&T syntax that BGB noted above is far superior.
YMMVO.
x86 asm, as used in MASM and DEBUG, was the first assembler language O used, I found it very familiar that
mov ax,bx
or
mov ax,[bx]
or
mov ax,[bx+1234]
all correspond nicely to
a = b
a = *b
a = b[1234]
I.e having the target on the left is the only one that makes sense to me. I can read the wrong one of course, but I have internally translate everything before I can grok it.
Terje
-- - <Terje.Mathisen at tmsw.no>"almost all programming can be viewed as an exercise in caching"