Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Doesn't LTO produce even smaller/faster binaries anyway?


I'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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: