asm volatile

Feb 04, 2008 22 Replies

In message , Wilco Dijkstra writes

Where you do need assembler to do something specific you want exactly that (often timing, cycles and space are important) and not have the compiler monkey around with it.

Where you do want assembler put it in a separate pure assembler function. If the overhead is much then the last thing you need is the compiler playing about "optimising it"

\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ /\/\/ chris@phaedsys.org www.phaedsys.org \/\/\ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Grant Edwards schrieb:

Damn!

How could have I overlooked that that guy was to lazy to do any kind of resarch on his own. I'm one of those who get annoyed by all those "use google dammit"-questions we have to read all the time.

Sorry about my rant - I hope everyone here feels guilty to answer to such a questions once a year....

Nils

... snip ...

I find that eggs become rather vile some time before volatility.

[mail]: Chuck F (cbfalconer at maineline dot net) [page]: Try the download section.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required