Article View: comp.lang.c.moderated
Article #2418Re: Pointer Arithmetic
From: Bart Samwel
Date: Wed, 27 Mar 1996 23:59
Date: Wed, 27 Mar 1996 23:59
26 lines
1581 bytes
1581 bytes
Hi Ari & Chris! Chris Torek wrote: > In article <4ip9k0$sqs@solutions.solon.com> Ari Lukumies > <aril@cmt.lpr.mail.carel.fi> writes: [...] > In article <4imabr$duc@solutions.solon.com> Stan Ryckman wrote: > >>It's not that much harder to implement [multiply by shifting] in a > >>compiler. > > This is true; also, if it is done correctly, index-multiplication by > shifting falls naturally out of multiplication by shifting (simply > turn the indexing into multiplication before doing the multiplication > optimizations). > > >That's a clever compiler. I haven't come across one yet in the Intel > >world, Maybe you could take a look at Watcom's C/C++ compiler. I've used it for a while now, and it is really the best optimizing compiler I've seen for Intel platforms so far. It doesn't have all those fancy development tools, but it sure generates fast and compact code (much better than MS's). Bart
Technical Details
Message-ID:
<4jckps$a50@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4i805f$47d@solutions.solon.com> <4ijp8i$1cf@solutions.solon.com> <4imabr$duc@solutions.solon.com> <4ip9k0$sqs@solutions.solon.com> <4j06ga$7np@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: Bart Samwel <bsamwel@WI.leidenuniv.nl> Newsgroups: comp.lang.c.moderated Subject: Re: Pointer Arithmetic Date: 27 Mar 1996 17:59:56 -0600 Organization: Dept. of Math. and Comp.Sci.; Leiden Univ.; Leiden; the Netherlands Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4jckps$a50@solutions.solon.com> References: <4i805f$47d@solutions.solon.com> <4ijp8i$1cf@solutions.solon.com> <4imabr$duc@solutions.solon.com> <4ip9k0$sqs@solutions.solon.com> <4j06ga$7np@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com X-Mailer: Mozilla 2.0 (X11; I; IRIX 5.3 IP22)