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

NASA Space App Challenger Runs Yocto on an Intel Edison-Based Nanosat

NASA has long had an interest in Linux and other open source technologies, and has used Linux in a variety of systems, including the R2 humanoid robot now at work at the International Space Station. With its International NASA Space App Challenge, the space agency is tapping into the maker gestalt to come up with new ideas, as well as inspire future space engineers. In this year's two-day Space App Challenge hackathon, which ran April 10-11 in 133 cities around the world, NASA greeted participants with over 25 challenges split into Earth, Outer Space, Humans, and Robotics categories. Read more

How to Find the Best Open Source Project to Work On

In my last article for Linux.com, I explored a few ways newcomers to open source projects can get started. While there are many resources to explore open source project communities, choosing which project to contribute to can still be a quite daunting task. You could go searching in the more than 23 million repositories on GitHub, the world’s largest source code hosting platform. But there are better ways. This article is meant to be a short guide to help novice open source practitioners more easily identify the first project they’d like to contribute to. Read more

Dell Is Telling Customers to Try a New OS, Ubuntu

Dell has been moving a lot of interesting moves lately and it's focusing on the Linux side of the business, which can only be a good thing for the open source platform. Read more

Linux 4.1 Kernel Benchmarks With An Intel Core i7 IVB System

Yesterday I ran some fresh tests of Intel Ivy Bridge on the latest Mesa Git code to see if the performance has changed much recently for the slightly-older generation of Intel HD Graphics. Today I've done some similar tests in kernel-space with the Linux 4.1 kernel. I ran benchmarks from the same Core i7 3770K system while testing the vanilla Linux 3.19, 4.0, and 4.1 Git kernels and running various graphics tests to see if there's been any recent i915 DRM kernel changes affecting the Ivy Bridge graphics performance. Read more