[comp.unix.xenix] Xenix 'size' command says 0 text size?

toppin@melpar.UUCP (Doug Toppin) (10/17/89)

We are rrunning IBM Xenix 2 on the 286.
We have a problem in using the size command to estimate how much
memory a process is going to need. Occasionally, it will say
that the text segment is 0 sized. I have not been able to find
anything unusual about the executables that happens with. If
anyone out there has seen this or knows why please let me know.
Thanks
Doug Toppin
uunet!melpar!toppin

chip@ateng.com (Chip Salzenberg) (10/19/89)

According to toppin@melpar.UUCP (Doug Toppin):
>We are rrunning IBM Xenix 2 on the 286.
>We have a problem in using the size command to estimate how much
>memory a process is going to need. Occasionally, it will say
>that the text segment is 0 sized.

Xenix executables for the 8086, '186 and '286 small model can be linked with
"impure" text; i.e. the text and data are stored in one modifiable segment.
In such an executable, both text and data are counted as data, so there is
no "text" to report.

Link the executable with "-i" to generate separate text and data.
-- 
You may redistribute this article only to those who may freely do likewise.
Chip Salzenberg at A T Engineering;  <chip@ateng.com> or <uunet!ateng!chip>
"'Why do we post to Usenet?'  Naturally, the answer is, 'To get a response.'"
                        -- Brad "Flame Me" Templeton