Date: Mon, 16 Jun 2008 16:08:09 +0200 (CEST) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-current@FreeBSD.ORG, julian@elischer.org Subject: Re: mprof and new systems.. Message-ID: <200806161408.m5GE89RR096948@lurza.secnetix.de> In-Reply-To: <48537B5F.30207@elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 -- 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: http://www.secnetix.de/bsd "C++ is to C as Lung Cancer is to Lung." -- Thomas Funke
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806161408.m5GE89RR096948>