Jaya,
> Your interpretation is misplaced.
>
> I asked Robert for an example of inline assembler that
> "causes more problems than it fixes".
>
> If you have one, put it up for discussion. If not, I have
> nothing more to say to you.
You're acting like a spoilt child.
Something concrete:
void do_something_nasty(void)
{
// I need to do something fast without a call, I need a register,
// so I'll pick r5 as the/ code generator seems it's not using that
// one when I run it under the debugger.
asm("ldr r5, =0x12345678");
// Now do soemthing with r5 because I did something above.
}
There is just so much wrong with the above it's untrue. I'm happy to
say I've never used inline assemler. If you need that crap, it's
because you have a toolset that doesn't have intrinsics for what you
want to do.
--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processorsMessage
RE: [lpc2000] Re: Example of C and inline ASM in a file?
2006-04-10 by Paul Curtis
Attachments
- No local attachments were found for this message.