object files: size of a buffer?

Doug Toppin toppin at melpar.UUCP
Tue Oct 17 06:35:38 AEST 1989


We are running IBM Xenix 2 on the 286.
I am pulling together a lot of software written by other people
and have been using 'size' to get an idea of how much memory is
needed to support all of it. Some of the program sizes are
astronomical (>250K) and I think there is some waste occurring
in data space allocation.
I would like to write a program/script that would look at the
data space declarations in their objects/executables and flag, by
name, any buffer allocations (both static and global) that are greater
than some size. I have tried using 'hdr' but I could not get it to indicate
the size of the buffers.  I took a look at 'a.out.h' but I still
can't find the structure that holds the name and size of an entry point.
If anyone knows of something that already does this or can point
me at the right structure please drop me a line.
thanks
Doug Toppin
uunet!melpar!toppin



More information about the Comp.unix.xenix mailing list