Answer the question
In order to leave comments, you need to log in
What is the binary compatibility of programs under Linux?
Then suddenly a question arose, can anyone help. I use RHEL and have very exotic processors (32-core xeons, all that). Let's imagine that I'm on a ship, and I want to write on a laptop under Hyper-V. The question is: can I, for example, install CentOS (under Hyper-V) and get binary (!) compatibility, given that the instruction set of the server Xeon and the laptop i7 are still different?
Nb: Intel C++ Compiler is used for development.
Answer the question
In order to leave comments, you need to log in
In general, there is such a thing as cross-compilation. It is necessary to look at what architectures your compiler supports.
32-core xeons, all that
Binary compatibility depends more on libraries and the environment than on the processor
in gcc there is an option mtune - non-strict optimization
if you build for the average x86_64 and do not be zealous with SSE and the like - it will work everywhere
, but threads are your job, not the compiler :-)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question