This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c/8395: gcc 2.95.4 and 3.2 generate wrong code for double onintel


On Mon, 4 Nov 2002, Marco Bernardo wrote:

> However, for a person doing research on the formal semantics of programming
> languages, it is difficult to accept that two differently compiled versions
> of the same sequential program return two different values for the same input.
> The compiler should not be free to alter the semantics of a sequential program,
> i.e. the program output for a given input! Some consistency should be kept.

You should read Norrish's thesis (link from the GCC readings page) which
gives a (imperfect) formal model in HOL of the semantics of a subset of
C90.  There are many areas where the program output for a given input is
only partially constrained.

-- 
Joseph S. Myers
jsm28@cam.ac.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]