On 07/04/2006 at 21:29:55 -0400 Robert Adsett Wrote: > At 10:31 PM 4/7/2006 +0000, rtstofer wrote: > > >OK, I'll bite! I have used inline assembly in cc5x (sort of C for the > >PIC) to control exactly the number of cycles in a delay routine. No > >active interrupts in this code. I suppose it could be done in C but > >that would change with compilers and optimization. > > An argument for assembly yes, but I don't see it as an argument for inline > assembly. > > Robert > One advantage of inline assembly is that you don't have to worry about of the calling convention used by the compiler (such as ATPCS or APCS). Regards, Boris Estudiez.- -- Contacteme en: * Mail(1): stk@... * Mail(2): 43824@... * Mail(3): slicetex@... * Website: http://stk.freeshell.org EOF
Message
Re: [lpc2000] Re: Example of C and inline ASM in a file?
2006-04-09 by Boris Estudiez