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

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

    Utility functions that the higher level language did not expect to support. An old example is from when I was attempting to get some of the niceties that C and Unix provided while working with Fortran on RSX-11M. I wanted to pass formatting strings around and use the simpler C style. The printf() needed to do some cast like operations. The Fortran did not have this concept so icast() and rcast() were written in assembler. Other functions implemented were move() and clone(). These were not done so much for efficiency as they were extending concepts outside Fortran's mindset.

提交回复
热议问题