you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 1 year ago (1 child)

Coding directly in assembly is rare.

I used to think that, but when you're dealing with a lot of low-level stuff you'll eventually realize that Compilers are pretty bad at generating fast and reliable Assembly where it's needed. Also, some Architectures have specific machine instructions that Compilers just don't take advantage of, no matter what flags you enable.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago*

    Also, some Architectures have specific machine instructions that Compilers just don’t take advantage of, no matter what flags you enable.

    Interesting. Do you have some examples?

    Writing those frequently-called leaf functions in assembly has certainly far outlived it's use in other places. But, the word on the street, or I guess the conventional wisdom, is that properly-used compilers gradually caught up even there.

  • source
  • parent