www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/09/00:31:48

Date: Mon, 8 Sep 1997 21:29:56 -0700 (PDT)
Message-Id: <199709090429.VAA27685@adit.ap.net>
Mime-Version: 1.0
To: T DOT Harte AT btinternet DOT com (Thomas Harte), djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: ANNOUNCE : More Allegro source code available

At 11:42  9/7/1997 GMT, Thomas Harte wrote:
>	They're probably very badly written (Lines even uses the goto
>command - shock horror! actually it only skips one if statement, and
>could be replaced with an else if, but I figured it was probably faster
>that way)
I doubt it; both ways should compile to an unconditional jump around the
statement. Check the output of `gcc -S'. Nearly always, if there are two
equivalent ways of doing something (as in your example), the compiler will
be smart enough to generate the best code to both. So you should use the
clearer one, which is probably the `else'.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019