Fat Binary for Linux and Mac without kernel support

2020-10-22 Thread Frederick Gotham
I have an idea for making a 'fat binary' that doesn't require any kernel support on Linux or Mac. So let's say we start off with a small shell script like this: #!/bin/sh arch=`uname -m` if [ $arch = "x86_64" ] ; then // Do something elif [ $arch = "aarch64" ] ; then

Fat Binary - MS-Windows and four Linux

2020-10-24 Thread Frederick Gotham
This is a follow-up to "Making a Fat Binary for Linux and Mac" which I posted 2 days ago. I got the most responses on 'comp.lang.c', which you can see here: https://groups.google.com/forum/#!topic/comp.lang.c/Qev_btMilNI I have now made a fat binary that contains 5 executable programs: *