I'm a big time assembler and I can beat any (C) compiler I agree with Wagner Lipnharski people are lazy these days and want to you c compilers to do everything the easy way. You get out what you put in saving 52 bytes I nothing. I you smart you save more byte buy using unused memory and fully understand what your goals are to accomplish. //Ross (HANWE) ---------- : From: Wagner Lipnharski : To: PICLIST@MITVMA.MIT.EDU : Subject: Re: C versus asy example : Date: Sunday, March 28, 1999 7:44 AM : : So you just compared what the C compiler did against what YOU did in : assembler. : Not trying to judge your capacity in asm, are you sure you did the best : you can in asm? : Remember that what the C compiler produced was exactly an assembler : code... : Wagner : : Chris Eddy wrote: : > : > Fellow Technologists; : > : > I just finished porting a piece of Assembly to HiTech's C compiler. I : > was pleasantly suprised by the results, so thought I would share them. : > The original Asm file assembled to use 603 words of ROM and 108 words of : > RAM. When converted to C, the compiler generated 557 words of ROM and : > 102 words of RAM ( I say word, but mean byte). So I trimmed a little : > bit of RAM and ROM. And now I don't rip out chunks of hair trying to do : > 16 bit math and array sorting in assembly. : > : > If there are any fence sitters out there, get over here on this side of : > the fence quick. The water is warm and the sky is clear. This compiler : > will pay for itself in just a few months. : > : > Chris Eddy, PE : > Pioneer Microsystems, Inc.