Date: Tue, 03 Sep 2002 19:16:43 +0200 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: hselasky@c2i.net Cc: Ari Suutari <ari.suutari@syncrontech.com>, Gary Jennejohn <garyj@jennejohn.org>, freebsd-isdn@FreeBSD.ORG Subject: Re: New ihfc driver Message-ID: <72801.1031073403@critter.freebsd.dk> In-Reply-To: Your message of "Tue, 03 Sep 2002 19:12:30 %2B0200." <20020903171229.YWL15962.fep02-svc.swip.net@mta-int.swip.net>
index | next in thread | previous in thread | raw e-mail
In message <20020903171229.YWL15962.fep02-svc.swip.net@mta-int.swip.net>, hsela sky@c2i.net writes: >About the c-coding: If the compiler would generate code that >generates and optimizes itself, using switches is no problem. But >hence the code generated will actually try each statement until one >matches, that wastes CPU. Especially if used in an interrupt handler. I have seen state-machines written in C for almost 20 years now, writing God knows how many myself in the same time. Nothing you can say can convince me that you need to do it they way you did. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the messagehome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?72801.1031073403>
