Is assembler portable between Linux distros?

前端 未结 3 853
一个人的身影
一个人的身影 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:50

    It's basically 20 years since I last bootstrapped a C compiler. At the level of compilers, the differences between Linux distributions are minimal.

    The much more important reason for going LLVM is cross-platform; if you're not writing some intermediate language, your compiler will be extremely difficult to retarget for different processors. And seeing as, on my laptop, I have compilers for x86, x86_64, two kinds of MIPS, PowerPC, ARM and AVR... you see where I'm going? I can compile multiple languages for most of those targets too (only C for AVR).

提交回复
热议问题