Re: Enormous C-ISAM binaries
Posted in 1997
Craig Macbride wrote: > I've recently been compiling some really small Informix C-ISAM v7 > programs under SCO Unix 5.0.2, and even a trivial source file becomes > over 500k (COFF) or about 380k (ELF). This is pretty astronomical, > especially compared to C-ISAM v4, which used to produce binaries with > about the same functionality (for my purposes) at under 20% of that size. > > Apart from the obvious (eg. stripping the binaries), is there any way > to limit the massive software bloat going on here? Do try "the obvious" -- if the libraries you're using were compiled with debugging (-g), they will hae enormous amounts of bloat which can be stripped away. Note that if `strip` removes the bloat, it isn't "real" anyway -- it isn't loaded when you run the program. It's just bytes on disk, until you need to use a debugger, when it's of great value. For a real reading of size, run `size your-binary`. The COFF vs. ELF difference is expected: OpenServer Release 5 doesn't provide COFF shared libraries, only ELF. So your COFF binaries are static; every byte of library code referenced by your code and the ISAM code you call is built into the binary. (And this *is* a "real" difference.) >Bela<