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=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,9adfbb907494972e X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,9adfbb907494972e X-Google-Attributes: gid103376,public From: "Tim Behrendsen" Subject: Re: Ada to C/C++ translator needed Date: 1996/09/30 Message-ID: <01bbae8f$dffbd440$32ee6fcf@timhome2>#1/1 X-Deja-AN: 186163860 references: <32499FA0.4B5E@magic.fr> <52e5t5$m28@btmpjg.god.bel.alcatel.be> <52feul$os2@goanna.cs.rmit.edu.au> <01bbad6e$67743f20$32ee6fcf@timhome2> <52ltk5$qlf@news1.halcyon.com> <01bbae25$67c669a0$32ee6fcf@timhome2> content-type: text/plain; charset=ISO-8859-1 organization: A-SIS mime-version: 1.0 newsgroups: comp.lang.c,comp.lang.ada Date: 1996-09-30T00:00:00+00:00 List-Id: Robert Dewar wrote in article ... > Tim said > > "Actually, id *does* release the C source code of Wolfenstein 3D, > the first real first-person texture-mapped game. It would be an > amusing project to convert it to various languages and see what > happens, e.g., how much time to compute a frame." > > Even such an experiment would not say much. It is certainly possible, > given any C program, to write an Ada program that generates identical > code in a GCC environment (GNU C and GNAT share the same backend of > course), but that does not prove much. In practice, one would want to > take advantage of the high level features of Ada not present in C, > and you could get results varying all over the map depending on how > you chose to program it. > > What is certainly true is that you are no worse off in Ada than in C. At > worst, you can program at a low level approximating C semantic level, > and you will get code of identical efficiency to C, so moving to C for > the sake of efficienfy alone makes no sense at all. I know that Ada does run-time checks of array bounds that C doesn't do; that could be one source of loss of performance. Does Ada do any other run-time checks that C doesn't do? -- Tim Behrendsen (tim@a-sis.com)