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

后端 未结 16 1773
野的像风
野的像风 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:23

    Sometimes certain features are not implementable in a high level language, and inline assembly is used instead. There is some inline assembly in the C++ library Qt, for example; I believe it's used for part of the object introspection system.

    In addition, glibc (the C library for gcc) uses assembly for optimization. IIRC one of the software-based floating-point math implementations has significant chunks written in assembly.

    One of the primary reasons for learning assembly, however, is debugging. On a few occasions, I've gotten myself into situations where not knowing assembly would have prevented me from debugging a particularly sticky problem.

提交回复
热议问题