On Fri, 22 Oct 2004, [iso-8859-1] Dag-Erling Sm?rgrav wrote:
DS>Harti Brandt <firstname.lastname@example.org> writes:
DS>> You cannot prevent the compiler from makeing temporary copies.
DS>Yes, you can, using the volatile keyword.
That doesn't help you if the compiler needs to fetch the function pointer
into a register to call it. That would be allowed even if you declare the
pointer volatile. Something like
mov funcptr, r0
If some other thread slips just between these two statements your call may
end up somewhere.