🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.intel
Article #282

Re: PLM vs. C for 80286/80386

#282
From: alfred
Date: Wed, 14 Jun 1989 20:23
12 lines
1244 bytes
> >I sincerely hope Intel's C compiler does not do so for *all* "switch"
> >statements; any competent C compiler can and will turn a "dense"
> >"switch" statement - i.e., one where the cases form a reasonably tight
> >range - into an indexded jump.  (The definition of "dense" varies from
> >compiler to compiler.)

Intel iC-n86 compilers are capable of generating three different kind of
code for the "switch" statement. Normally, we generate simple if-then-else
code for a dense switch statement with less than six cases, above that
an indexed jump will be generated. Moreover, we generate binary search code
for those sparsely dense switch statements. And in conformance to ANSI,
32-bit "long" data type can be used as case values.
Technical Details
Message-ID: <231@guardian.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bloom-beacon!husc6!ogccse!littlei!guardian!alfred
References: <598@philtis.UUCP> <14381@bfmny0.UUCP> <1765@auspex.auspex.com> <14386@bfmny0.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bloom-beacon!husc6!ogccse!littlei!guardian!alfred
From: alfred@guardian.UUCP (alfred)
Newsgroups: comp.sys.intel
Subject: Re: PLM vs. C for 80286/80386
Keywords: PLM C
Message-ID: <231@guardian.UUCP>
Date: 14 Jun 89 20:23:57 GMT
References: <598@philtis.UUCP> <14381@bfmny0.UUCP> <1765@auspex.auspex.com> <14386@bfmny0.UUCP>
Reply-To: alfred@.UUCP (Alfred Huang)
Organization: Intel Corp., Development Tools Operation
Lines: 12