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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,382fcf8feeefdd50 X-Google-Thread: 1014db,382fcf8feeefdd50 X-Google-Attributes: gid103376,gid1014db,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!ihnp4.UCSD.Edu!sdd.hp.com!news-pa1.hpl.hp.com!not-for-mail From: Chris Dollin Newsgroups: comp.lang.ada,comp.lang.c Subject: Re: computer language used to program Mars Lander Followup-To: comp.lang.ada Date: Tue, 22 Jul 2008 13:05:58 +0100 Organization: HP Labs Message-ID: References: <185ee7f9-9d4f-4f49-8dbe-6b623b8a8223@c58g2000hsc.googlegroups.com> <887fc0a7-0a5a-4d2e-a9ea-eb9e32d6a818@m36g2000hse.googlegroups.com> <13a2f4f0-6ec1-4570-b6bf-1621cfb32db2@a2g2000prm.googlegroups.com> <4880f2ed$1_6@news.bluewin.ch> <1c421bda-5526-42e5-9a3f-96cb33bf86a0@k13g2000hse.googlegroups.com> NNTP-Posting-Host: cdollin.hpl.hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit X-Trace: news-pa1.hpl.hp.com 1216728360 19434 16.25.175.192 (22 Jul 2008 12:06:00 GMT) X-Complaints-To: usenet@news-pa1.hpl.hp.com NNTP-Posting-Date: Tue, 22 Jul 2008 12:06:00 +0000 (UTC) User-Agent: KNode/0.10.9 Xref: g2news1.google.com comp.lang.ada:1244 comp.lang.c:10354 Date: 2008-07-22T13:05:58+01:00 List-Id: Nick Keighley wrote: > On 22 Jul, 09:39, Jean-Pierre Rosen wrote: >> Gautier a �crit : > > > >> > [this] comes from the time of >> > non-optimizing compilers for PC's - around 20 years ago. At that time a >> > i++ was faster than a i:= i + 1, sure. But it was long long time ago. >> > Never heard of GCC ?... >> >> When I started working on a (Pascal) compiler, this optimization was the >> first one I introduced in the compiler, because it was the easiest one >> to do. And it was 30 years ago... > > Pascal has a ++ operator? No, but it has an opportunity to optimise `i := i + 1;` to the same code as a C compiler might have compiled `i++` into. -- 'It changed the future .. and it changed us.' /Babylon 5/ Hewlett-Packard Limited registered office: Cain Road, Bracknell, registered no: 690597 England Berks RG12 1HN