[LinuxBIOS] flashrom: patch for jedec.c

Uwe Hermann uwe at hermann-uwe.de
Fri Nov 17 17:22:06 CET 2006


On Fri, Nov 17, 2006 at 01:12:55PM +0100, Stefan Reinauer wrote:
> The initial idea is that the use of goto makes it hard for the compiler
> to do code flow optimization.

The initial idea why you should _not_ use GOTOs is that GOTOs suck ;-)
There was a paper called "Go To Statement Considered Harmful" from
Edsger W. Dijkstra (and that man probably knows what he's talking about)
in 1968 (!). GOTOs usually produce unreadable, unmaintainable code and
should generally not be used.

But yeah, in low-level programming it may make sense in certain
situations, as the code sometimes gets very ugly otherwise...


Uwe.
-- 
http://www.hermann-uwe.de  | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20061117/01db3758/attachment.sig>


More information about the coreboot mailing list