Hacker News new | ask | show | jobs
by dragonwriter 1108 days ago
> CPU’s natively use a language referred to as “Assembly”, b

Strictly, CPUs use machine code. Assembly targeting a particular CPU is a very thin more-human-readable abstraction around the underlying machine code, but it is not, itself, what the CPU executes. That’s why “assemblers” exist – they are compilers from assembly language to machine code (though, because assembly is a very thin abstraction, they are much simpler than most other compilers.)

2 comments

Agree. And deeper than that may be microcode, which we rarely see or reason about, and while may very much be there is rarely of practical use. (Ie, when learning, the distinctions may be somewhat an impediment without payoff.)
Would calling "Assembly" a CPU's frontend language be correct?

The same way as it is in compilers