Is assembler portable between Linux distros?

前端 未结 3 851
一个人的身影
一个人的身影 2021-01-14 18:26

Is a program shipped in assembler format portable between Linux distributions (modulo CPU architecture differences)?

Here\'s the background to my question: I\'m work

3条回答
  •  迷失自我
    2021-01-14 18:49

    At a very high level, the ABI consists of { instruction set, system calls, binary format, libraries }.

    Distribution as .s may free you from the binary format. This is still rather pointless, because you are fixed to a particular ISA and still need to use libraries and/or make system calls. Libraries vary from distribution to distribution (although this isn't really that bad, especially if you just use libc) and syscalls vary from OS to OS.

提交回复
热议问题