Newsgroups: comp.os.msdos.programmer Path: utzoo!utgpu!watserv1!maytag!watstat.waterloo.edu!dmurdoch From: dmurdoch@watstat.waterloo.edu (Duncan Murdoch) Subject: Re: Code size generated by Turbo C Message-ID: <1990Sep21.130939.24892@maytag.waterloo.edu> Sender: daemon@maytag.waterloo.edu (Admin) Organization: University of Waterloo References: <139400009@uxa.cso.uiuc.edu> <26252@cs.yale.edu> Date: Fri, 21 Sep 90 13:09:39 GMT Lines: 16 In article <26252@cs.yale.edu> spolsky-joel@cs.yale.edu (Joel Spolsky) writes: >In article <139400009@uxa.cso.uiuc.edu> klg0582@uxa.cso.uiuc.edu writes: >>One thing I don't like for Turbo C is that the >>executable code for the program of same purpose is larger in C than in >>pascal. Is this generally true or is there a way to avoid this? > >This may be true for trivially small programs but the difference >is probably insignificant for large programs. That makes sense if the difference is all in the linking (TP's linker is better at dead code/dead data removal than TC's), but I've never seen a comparison of the code generation that would convince me whether or not that's true. Have you, or has anyone else? Duncan Murdoch dmurdoch@watstat.waterloo.edu