Re: mprof and new systems..

From: Pietro Cerutti <gahr_at_FreeBSD.org>
Date: Tue, 26 Aug 2008 18:16:57 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Oliver Fromme wrote:
| 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".

Or by faking access to it through (void)&variable;

|
| Best regards
|    Oliver
|


- --
Pietro Cerutti
gahr_at_FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAki0LHkACgkQwMJqmJVx94467ACfe4fXXTNqdlrTzAqjLxJ4Za+J
9y0AoKSli9OVUfS6z0/om9dONIRxKzkg
=AF/u
-----END PGP SIGNATURE-----
Received on Tue Aug 26 2008 - 14:17:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:34 UTC