Language Selection

English French German Italian Portuguese Spanish

Binary Portability in Linux

Filed under
Linux

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

Android Leftovers

Mobie Is a Tablet That Dual-Boots Ubuntu 14.04 LTS and Windows 8.1

Mobie is a new kind of 2-in-1 tablet developed in Finland that is capable to dual-boot Ubuntu 14.04 LTS and Windows 8.1. It's being launched in a couple of months and it already looks very good, at least on paper. Read more

Can or Can’t?

What I love about open source is that it’s a “can” world by default. You can do anything you think needs doing and nobody will tell you that you can’t. (They may not take your patch but they won’t tell you that you can’t create it!) It’s often easier to define things by what they are not or what we can’t do. And the danger of that is you create a culture of “can’t”. Any one who has raised kids or animals knows this. “No, don’t jump.” You can’t jump on people. “No, off the sofa.” You can’t be on the furniture. “No, don’t lick!” You can’t slobber on me. And hopefully when you realize it, you can fix it. “You can have this stuffed animal (instead of my favorite shoe). Good dog!” Read more

IT pros to move to open source software in 2015

IT professionals are expected to move away from proprietary to open source software in 2015, according to new research. A survey by Ponemon Institute and Zimbra shows 67 per cent of EMEA IT professionals agree that commercial open source software offers better business continuity. 74 per cent in the US also agree open source is better for business continuity, compared to propriety software. Read more