Re:Mold/macOS is 11 times faster than the Apple's default li...
by dalanmiller on Sunday June 19, 2022 @01:22AM
(#31796363)
How do I learn about what’s being discussed here? Why do I need a linker?
[ Parent
| on HN ]
Re:Mold/macOS is 11 times faster than the Apple's default li...
by fmajid on Sunday June 19, 2022 @04:39AM
(#31797466)
John R. Levine’s book Linkers and Loaders remains the only comprehensive coverage on the topic. You can get the manuscript proofs for free on the author’s website:
The Solaris Linkers and Libraries docs are very good and mostly relevant to Linux, with fewer distractions about Windows:
Re:Mold/macOS is 11 times faster than the Apple's default li...
by rurban on Sunday June 19, 2022 @09:09AM
(#31798999)
I would argue reading mold's source code is much easier and simplier to understand.
Re:Mold/macOS is 11 times faster than the Apple's default li...
by KerrAvon on Sunday June 19, 2022 @11:56AM
(#31800503)
Than Levine’s book? You would lose the argument.
Re:Mold/macOS is 11 times faster than the Apple's default li...
by rurban on Monday June 20, 2022 @10:16AM
(#31810608)
nope, read both, mold was easier.
even if I am a perl master.
Re:Mold/macOS is 11 times faster than the Apple's default li...
by mrtksn on Sunday June 19, 2022 @01:56AM
(#31796508)
Here is a video presentation from Apple about the topic: https://developer.apple.com/videos/play/wwdc2022/110362
It has an introduction section on what is a linker and why you need one. The gist is, linker is the piece of software that puts together different source file, be it at compile time or runtime. So, the faster is your linker the quicker the app compiles and opens.
Re:Mold/macOS is 11 times faster than the Apple's default li...
by hoten on Sunday June 19, 2022 @07:21AM
(#31798295)
Individual compilation units (ex: .o files built from .c files) hold references (ex: from .h files) to other compilation units. In order to assemble a full executable, a linker takes all these individual units and links them together.
Re:Mold/macOS is 11 times faster than the Apple's default li...
by rui314 on Sunday June 19, 2022 @01:24AM
(#31796373)
You may want to read this section of the README.
https://github.com/rui314/mold#why-does-the-speed-of-linking...