Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!ucselx!crash!pnet01!uzun From: uzun@pnet01.cts.com (Roger Uzun) Newsgroups: comp.sys.amiga.programmer Subject: Re: C compilers (was a flame war : -) Message-ID: <8431@crash.cts.com> Date: 7 Apr 91 09:16:01 GMT Sender: root@crash.cts.com Organization: People-Net [pnet01], El Cajon CA Lines: 16 [] Just out of curiosity, I checked the x *= 17; statement with SAS/C 5.10a, basically it does do an lsl #4 and an add #1, as long as the argument is not a short when compiled without the -w option. If the argument is a short and 32 bit ints are the default, the compiler uses a mul #$11 rather than the lsl, add. In all other cases it seems to do an lsl, add sequence. I guess compilers are getting smarter. -Roger UUCP: {hplabs!hp-sdd ucsd nosc}!crash!pnet01!uzun ARPA: crash!pnet01!uzun@nosc.mil INET: uzun@pnet01.cts.com