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

后端 未结 16 1971
野的像风
野的像风 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条回答
  •  旧时难觅i
    2021-02-14 16:15

    Boost, being as modern C++ as it is, uses inline assembly for low-level performance-critical bits like atomic shared counters.

    Edit: as @TokenMacGuy correctly notes, "performance" is a wrong word here. Boost uses assembly language for things that cannot be accomplished in standard C++ such as atomics (and compiler intrinsics are not available for some reason.)

提交回复
热议问题