[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: g++ Bug? Why w/ and w/o "O3" options gives different result(g++3.3.3
From: |
Peng Yu |
Subject: |
Re: g++ Bug? Why w/ and w/o "O3" options gives different result(g++3.3.3) for this program? |
Date: |
Sun, 05 Dec 2004 21:58:14 GMT |
Is there any way to force the compiler to save or not to save it in
the memory?
On Sat, 4 Dec 2004 20:09:21 +0100, Andre Poenitz <poenitz@htwm.de>
wrote:
>Peng Yu <pengyu.ut@gmail.com> wrote:
>> I wonder why the first cout statement and the declaration of
>> g_range_down as an array will affect the compile result.
>
>Because in one case the compiler might decide not to create the array at
>all but keep it's only used member in a register, whereas in the other
>case it might decide to actually store it somewhere in a different
>format.
>
>This is not a bug, it simply the kind of environment you live in once
>you use floating point arithmetic.
>
>Andre'