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,9adfbb907494972e X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,9adfbb907494972e X-Google-Attributes: gid1014db,public From: dewar@schonberg.cs.nyu.edu (Robert Dewar) Subject: Re: Ada to C/C++ translator needed Date: 1996/09/29 Message-ID: #1/1 X-Deja-AN: 186149281 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> organization: New York University newsgroups: comp.lang.c,comp.lang.ada Date: 1996-09-29T00:00:00+00:00 List-Id: 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.