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 FunkeReceived on Mon Jun 16 2008 - 12:37:19 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:32 UTC