mprof and new systems..

Oliver Fromme olli at
Mon Jun 16 14:37:19 UTC 2008

Julian Elischer wrote:
 > in addition, with -O2 it seems that the address of the variable
 > may actually be wring if the optimiser never bothers to
 > have the variable actually saved.

Maybe I'm missing the obvious here, but you can prevent
the compiler from optimizing the variable by declaring
it as "volatile".

Best regards

Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:

"C++ is to C as Lung Cancer is to Lung."
        -- Thomas Funke

More information about the freebsd-current mailing list