[comp.unix.questions] Zero length text segments

daveh@marob.MASA.COM (Dave Hammond) (09/30/88)

A mild curiosity:

I recently acquired a copy of the public domain program `vsh'.  After
compiling it on a 286 machine, I ran `size' on the executable, which reported:

0 + 45178 + 4006 = 49184 = 0xc020

The cc command args include `-n' which creates a pure-text executable.
Assuming that this option produced the 0 text-segment size, it appears to make
no significant difference in execution speed or core size.  What, if any,
are the benefits of a 0 length text-segment program?

Dave Hammond
  UUCP: uunet!masa.com!marob!daveh
DOMAIN: daveh@marob.masa.com
----------------------------------------------------------------------------