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,63bbc3281a2f80ea X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Ada vs. C Date: 1996/08/10 Message-ID: #1/1 X-Deja-AN: 173382978 references: <3208F2BA.E34@freenet.scri.fsu.edu> <320B693F.4ACA@freenet.scri.fsu.edu> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-08-10T00:00:00+00:00 List-Id: The Quelisher said "When I compiled each of the above here are the file sizes that resulted: C ----> 24,576 Ada --> 253,952" So what? this does not prove, or even relate to your point, and it is certainly complete nonsense to take this observation and deduce from it that a 6 megabyte Ada program will correspond to a 2 megabyte C program. Why are the above figures not relevant. First: the size of an executable file is not related to the size of the executable program in any simple way. Two factors are of critical importance. First, are they both stripped or not, I am willing to bet that the Ada file was not stripped -- so why didn't you strip it to make the comparison. Second, I would guess the Ada program is statically linked, and the C program is dynamically linked, meaning that the space for Text_IO is included in the Ada size you see, and the space for printf is not included in the C file that you see. Finally, and most importantly, these are quite different programs, one uses the package printf, and the oher uses the package Text_IO. Yes, there is some overlap in capability, but they are definitely not the same package, and both contain functionality not in the other. If you want to persue this, first make sure you understand what stripping is about, and also what dynamic vs static linking is about, so that these factors do not make your observations meaningless, and then compare programs that are comparable!