At 12:56 PM 4/9/06 +0100, Stephen Pelc wrote: > > Robert Adsett <subscriptions@...> > > > Indeed, I've yet to see a good reason to use inline > > assembler on any processor and that's doubly true for the > > ARM. > >When you need efficient access to ideas not supported by the >programming language. These are usually things like the state of >the Carry and Overflow flags. Using assembler rather than high >level kluges can improve performance by factors of 2..5, >depending on CPU. > >A client of ours performs financial calculations using 128 bit >integers. The difference between their app and the competition's >floating point app for part of the Hong Kong airport >construction was US dollars 10,000,000. The on-screen >recalculation performance was important, so they coded the quad- >integer routines. OK, but how is that an argument for making the assembler inline? I do see uses for assembler, I am just of the opinion, informed by my experiences, that inline assembler causes more problems than it fixes. Robert " 'Freedom' has no meaning of itself. There are always restrictions, be they legal, genetic, or physical. If you don't believe me, try to chew a radio signal. " -- Kelvin Throop, III http://www.aeolusdevelopment.com/
Message
Re: [lpc2000] Re: Example of C and inline ASM in a file?
2006-04-09 by Robert Adsett
Attachments
- No local attachments were found for this message.