On Sat, Apr 07, 2007 at 07:41:59AM -0400, Robert Dewar wrote: > J.C. Pizarro wrote: > > >A solution is using the -shared option to generate ".so" library. > > That does not solve things in environments like embedded > environments where there are no shared libraries. > > > >Another future solution is pack the big ".so" library with UPX > >(Ultimate Packer for eXecutables) or extend the ELF format to > >permit pack the sections with GZ, BZ2 or LZMA. > > We are worried about code space in memory, not space on disk!
This is why I suggested that, should we implement a better check, there should be an option to turn it off, so programmers who cannot afford an extra byte are taken care of. However, the extra code might amount to 2-4 instructions per call to array-new (for objects of size > 1), and this is not that common an operation in any case.