Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: Example of C and inline ASM in a file?

2006-04-09 by Boris Estudiez

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

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.