Language Selection

English French German Italian Portuguese Spanish

Binary Portability in Linux

Filed under

An interesting topic for a change: is Linux binary portable? That is, can we take a binary file and be sure it’ll run in any other Linux system? What happens if we broaden that to any POSIX system, will it blend? Eh, I mean, will it run?

Doing some research on the subject I wrote down a list of the thought process which led my to an (inconclusive) answer:

1. First we should define what a binary is for us: When we talk about a binary we are usually thinking about a compiled binary file, not an interpreted script file like Ruby or Python. Those are for people who like things to actually work, so let’s focus on a compiled executable file, like a C/C++ application.

2. Defining compiled file: What could it be other than a sequence of bytes the microprocessor can understand? Yes, that’s right, it’s sort of interpreted code, only there’s electronics behind, not more code. This brings us to the first interesting conclusion: the executable must be (leaving emulators aside) compatible with the architecture you’re on. Running Sparc? Well then, the binary better be compiled for Sparc because otherwise to the uP will not make any sense.

rest here

More in Tux Machines

Liquorix Kernel Benchmarked Against Linux 4.2, Linux 4.3 Kernels

Recently there were a number of requests about testing the latest state of Liquorix, the self-prcolaimed "better distro kernel" that is an optimized version of the Linux kernel with extra patches that makes it optimal for desktop, multimedia, and gaming workloads. Here's some fresh Liquorix vs. mainline Linux kernel performance benchmarks. Read more

Ada Lovelace Day: Marina Zhurakhinskaya and Outreachy

Working as a senior software engineer at Red Hat on the GNOME Project, I was very impressed by the talent of the project contributors, by how rewarding it is to work on free software, and by the feeling of connectedness one gets when collaborating with people all over the world. Yet, at GUADEC 2009, of approximately 170 attendees, I believe I was one of only eight women. Of the software developers working on the entire GNOME project at the time, I was one of only three. Read more

Why Samsung's Open-Source Group Likes The LLVM Clang Compiler

Samsung is just one of many companies that has grown increasingly fond of the LLVM compiler infrastructure and Clang C/C++ front-end. Clang is in fact the default compiler for native applications on their Tizen platform, but they have a whole list of reasons why they like this compiler. Read more