This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: execution order
> Would it be possible to do it dynamically?
> class* p=new class;
> other stuff;
> delete p;
These kind of operations (malloc,free.new,delete) are not used at all because
there is only a few memory :-( and the whole thing is compiled into a very
few instructions.
I need some more tests, but it seems that the 'volatile' can resolve the
problem. However, it switches off other optimizations too, so the affected
code must be rewritten. :-(
Regards
K. Gy.