> -----Original Message----- > From: Dan Michaels [SMTP:oricom@LYNX.SNI.NET] > Sent: Monday, August 21, 2000 5:01 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: Sine table > > Trying to fine-tune the C to get the "desired" asm output sounds > like a losing proposition, for several reasons. And obviously, > using inline asm to get determinism is not coding in C. > > C = determinism = I doubt it [polite form of NO!] > With the majority of real time applications, only a relatively small part of the code is critical. The beauty of C is that the rest of the code can be written quickly and reasonably efficiently, and time critical sections can be written in ASM. OK, this loses (or at least reduces) the portability of the code, but to be honest, how often do you port your washing machines controller code to your cars ECU? :o) You *can* write deterministic code in C, but you could be shooting yourself in the foot as it is quite likely to be more difficult and time consuming than using ASM (e.g. having to refer to the compilers ASM listing and then tweaking the C code). You seem to be a little "anti-C"? If you work in a market where time to market is probably the single most important factor, then you'd really see the benefits. Mike -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu