What kind of projects (besides the obvious OS stuff) use assembly language?

后端 未结 16 1882
野的像风
野的像风 2021-02-14 15:48

Seemingly, no one uses assembly nowadays other than to develop device drivers, or the very core of OS kernels etc. Anyone has knowledge of it being currently used for other thin

16条回答
  •  伪装坚强ぢ
    2021-02-14 16:21

    The last time I came across assembler was when I used to hack the Quake I source code. All the math libraries (especially anything for dot products) were written in MASM by John Carmack. This stuff was floating-point intensive, and at the time C wasn't as good as expertly hand-crafted ASM for floating operations. Also, since computers were far more CPU-limited, and since Quake used the CPU for rendering, every single operation mattered, so ASM worked best.

提交回复
热议问题