execution order

Kövesdi György kgy@deverto.hu
Mon Sep 24 15:57:00 GMT 2007


> 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.



More information about the Gcc-help mailing list