Hacker News new | ask | show | jobs
by WalterBright 52 days ago
Instructions like AAA (Ascii Adjust for Addition) on the 8088. The 8087's stack architecture. XLAT, STOS, etc. Asymmetries in how the registers work. ENTER/LEAVE. Kludge instruction sets like the Z80.

An instruction set ideally suited for C is the PDP-11.

1 comments

Why would AAA be an instruction made for C? I don't see this. Or 8087's stack architecture? Or xlat? ENTER/LEAVE is also a counter example where CPU vendors added instructions for other languages than C.
Those instructions preceded the rise of C. CPU makers at the time thought Pascal was going to dominate, hence ENTER/LEAVE.
Ok, sorry, I must have misunderstood your original comment. I thought you were saying CPU makers added those instructions for C.
C wasn't really on the radar when the IBM PC debuted.