I just learnt a neat trick, you can create an object file from any file if you need to link against some binary blob. (I'm guilty of just using the slow xxd -i technique) https://gcc.gnu.org/pipermail/gcc-help/2020-April/138794.html …
-
-
Yep, can confirm it's slow. Source: I wrote it ;-)
-
If you’re linking something large enough to be a bottleneck, surely it’s worth avoiding the detour through C altogether and just using a portability shim that calls ld/gold/lld instead?
- 2 more replies
New conversation -
-
-
It's slightly better than plain xxd in terms of used memory during compilation. End result is the same of course.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.