CTO at Serissa Research (2001–present) · Author has 10.4K answers and 20.6M answer views · 6y ·
Assembler is used to code things like the initial boot sequence of a computer, before the runtime environment needed for a higher level language is available.
Assembler is used to code the interrupt entry and exit sequences in the OS, because you need exact control over the contents of the stack and registers.
Assembler is used to code instructions that are not generated by a high level compiler. These are things like reads and writes to processor control registers and machine specific registers.
Assembler can also be needed to code certain twisty interlocked instructions for which compiler intrinsics are not available.
Most of the time, you can use C, which has a pretty good “asm” feature.
1.5K views ·
View upvotes
· 1 of 7 answers
Something went wrong. Wait a moment and try again.