3 ms·
Heh, speaking of linking individual functions, GHC Haskell has a flag to emit one object file per function and do that thing with a traditional linker. It's ho
by floatboth 10y ago
Heh, speaking of linking individual functions, GHC Haskell has a flag to emit one object file per function and do that thing with a traditional linker.
It's horribly slow.
But it produces smaller binaries, I've got 2x smaller binaries on my projects with that option.
- ThisIs_MyName 10y agoDoesn't LTO produce even smaller/faster binaries anyway?
- floatboth 10y agoI'm not sure what's the state of LTO in GHC… By the way: using LLD helped massively with linking all these small Haskell function objects. It's really much faster than even gold!