> Shared libraries would help a lot here.

Available data seem to suggest it might be a pyrrhic victory.

There is a venerable hack which I think I saw in the BSD
world (but which is probably older than that) by which
N program's main()'s are renamed to be foo_main() and
everything is linked together into one huge executable
with a main() which dispatches based on argv[0].  It's
crufty but the win is you end up with 1 printf() instead
of N.

Dave Eckhardt

Reply via email to