Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!seas.gwu.edu!mfeldman From: mfeldman@seas.gwu.edu (Michael Feldman) Newsgroups: comp.lang.ada Subject: Re: Reducing size of Ada's EXE files Keywords: EXE size Message-ID: <3066@sparko.gwu.edu> Date: 16 Apr 91 19:12:10 GMT References: <437@wrdis01.af.mil> <1991Apr12.235101.7245@jpl-devvax.jpl.nasa.gov> <1991Apr15.094702@riddler.Berkeley.EDU> Reply-To: mfeldman@seas.gwu.edu () Organization: The George Washington University, Washington D.C. Lines: 24 In article <1991Apr15.094702@riddler.Berkeley.EDU> yow@sweetpea.jsc.nasa.gov writes: > >What I would like to see is the SHARING of generic code, not this macro >expansion that takes place in compilers. I wrote my own dynamic generic >because the generic code was about 20K (object code size) and the >generic was used 50+ times on a PC (640K limit). This would never work >with the marco expansion because the program would be over 1 meg just >for the generics!!! (:-() > Indeed. But code-sharing in generics is a separate issue from throwing away dead code. Are you saying that _everything_ in the generic was used 50+ times? Wouldn't throwing away the dead code at least get rid of some of the extra stuff? I wonder if folks out there in net-land could check their favorite compiler documentation and ascertain the general kinds of global optimizations done. A general summary of compiler families in this regard would be helpful to all concerned. I'll take responsibility of summarizing, though I think your answers would be better posted than e-mailed to me. Does your system code-share generics? Does your system throw away dead code? Mike