Frank Heckenbach wrote:
Adriaan van Os wrote:
I wonder if "ld" is an optimizing linker, as "nohello" has the same executable size as "hello".
That's interesting -- doesn't happen here. It might be the result of padding (though 600 bytes seems a little much), I don't know.
Maybe, a segment size of 1K or 2K or something like that. The "writeln" and "console" runtime library stuff will be linked in anyway, I guess, because of messages to standard error ?
BTW, is this GNU ld, or an Apple linker?
It's an Apple Mach-O linker. I will download the GNU linker to experiment with.
Regards,
Adriaan van Os