How un-portable is assembly language, /really/?

后端 未结 4 1413
梦如初夏
梦如初夏 2021-01-05 06:46

I understand that writing anything in assembly, or adding assembly to any program harms its portability. But, how bad? I mean, basically all PC\'s are x86 or x64 these days,

4条回答
  •  佛祖请我去吃肉
    2021-01-05 07:12

    assembly is writing instruction directly for a specific processor, which means yeaah if the x86 live forever your code is somehow portable.

    But even now the arm processor are coming back (i.e. next generation net book) and I am sure if processor won't change in next year.

    I would say assembly language is by design not portable.

提交回复
热议问题