D
D
Dmitry2014-10-11 13:36:20
linux
Dmitry, 2014-10-11 13:36:20

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

4 answer(s)
K
Konstantin Kitmanov, 2014-10-11
@mezastel

In general, there is such a thing as cross-compilation. It is necessary to look at what architectures your compiler supports.

S
Sergey, 2014-10-11
Protko @Fesor

32-core xeons, all that

x86_64 processor architecture, non-standard instruction set which you will hardly use, or rather, your compiler will use something else without checking whether it exists.

G
Gem, 2014-10-11
@Gem

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 :-)

D
Don Kaban, 2014-10-12
@donkaban

Cross compilers for all supported platforms. Obviously, at least GLIBC and GLIBCXX you will have to drag from the target platform to your sysroot, it's easy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question