|
|
Subscribe / Log in / New account

FatELF: universal binaries for Linux

FatELF: universal binaries for Linux

Posted Oct 30, 2009 6:14 UTC (Fri) by ringerc (subscriber, #3071)
In reply to: FatELF: universal binaries for Linux by pj
Parent article: FatELF: universal binaries for Linux

"Relatedly, if compilers and linkers are FatELF-aware, they can build fatELFs a bit faster because they only have to do the parsing once, and then object code for all the platforms from the same resultant parse tree."

Unfortunately, that's not true in any language where the use of a preprocessor is standard and commonplace, like C or C++. The preprocessor is a step run before parsing, and the work the preprocessor does may change what the result of parsing is by adding/removing/changing parts of the program text. It's very common in C/C++ to use the preprocessor to handle things like type selection, type size and byte order issues - exactly the sorts of things that'll change depending on target arch.


to post comments

FatELF: universal binaries for Linux

Posted Nov 4, 2009 16:00 UTC (Wed) by pj (subscriber, #4506) [Link]

Good point. I still think the win as a solution to arch-based-path hell for cross-compiles might be worth it.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds