Mail Archives: djgpp/1996/03/24/22:14:36
On 25/3/96 1:34 am, <j DOT aldrich6 AT genie DOT com> did thus say >>>
>
> If I remember correctly (not being an assembly programmer myself), can't
> you just use the 'volatile' keyword with the function that contains the asm to
> prevent gcc from optimizing it? As I recall, 'volatile' tells gcc not
> tooptimize
> any given code/variable it is used with (in addition to its other uses).
I think the 'volatile' functions will still be inlined, just not optimised out or moved
significantly. I don't actually know, as I don't use that attribute much myself.
Bill
- Raw text -