From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6ff6ac051491e437 X-Google-Attributes: gid103376,public From: fjh@mundook.cs.mu.OZ.AU (Fergus Henderson) Subject: Re: GNAT Codesize Date: 1996/06/28 Message-ID: <4r1806$aci@mulga.cs.mu.OZ.AU>#1/1 X-Deja-AN: 162620914 references: <31c8fdd4.5a455349@zesi.ruhr.de> <835637893.1349.0@assen.demon.co.uk> organization: Comp Sci, University of Melbourne newsgroups: comp.lang.ada Date: 1996-06-28T00:00:00+00:00 List-Id: dewar@cs.nyu.edu (Robert Dewar) writes: >John McCabe said > >"By debugging information here are you referring to e.g. symbol tables >and that kind of thing? If so, is it not possible to keep this >information in a separate file akin to what embedded cross-development >systems tend to use?" > >Yes, exactly, symbol table type information. Yes you could keep it in >a separate file, but > >(a) it would not save any disk space to have two files instead of one >(b) you don't load the symbol information, so it would not save load time >(c) it would violate system standards, which are to keep debugging > information in the objects and executables. The GNAT approach > is deliberately system standard compatible to allow use of > standard debuggers. Also (d) the increased number of files would slow down directory lookups, which can be an important factor in compilation time for large projects (with typical file systems, searching a directory with N files is O(N)) and (e) it would be irritating; simple commands like `cp foo foo.old' or `rm foo' would not be sufficient, and more complicated commands would have to be used instead. On the other hand, it might well be a good idea to make the `-s' (strip) option the default if `-g' (debug) was not specified on the command line during the linking step. That's what I did for the Mercury compiler, and we haven't got any complaints about it. -- Fergus Henderson | "I have always known that the pursuit WWW: | of excellence is a lethal habit" PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp.