Re: failure due to compiler?

Corchia Alain <alain@phidani.be>
15 Jul 1996 11:38:15 -0400

          From comp.compilers

Related articles
[8 earlier articles]
Re: failure due to compiler? khays@sequent.com (1996-07-10)
Re: failure due to compiler? cliffc@ami.sps.mot.com (1996-07-10)
Re: failure due to compiler? WStreett@shell.monmouth.com (1996-07-13)
Re: failure due to compiler? jfc@mit.edu (1996-07-13)
Re: failure due to compiler? bobduff@world.std.com (1996-07-13)
Re: failure due to compiler? baynes@ukpsshp1.serigate.philips.nl (1996-07-13)
Re: failure due to compiler? alain@phidani.be (Corchia Alain) (1996-07-15)
Re: failure due to compiler? dave_sc@csl.sri.com (1996-07-15)
Re: failure due to compiler? kanze@lts.sel.alcatel.de (1996-07-16)
Re: failure due to compiler? glew@ichips.intel.com (1996-07-16)
Re: failure due to compiler? WStreett@shell.monmouth.com (1996-07-16)
Re: failure due to compiler? grout@polestar.csrd.uiuc.edu (1996-07-18)
Re: failure due to compiler? gah@u.washington.edu (1996-07-19)
[14 later articles]
| List of all articles for this month |
From: Corchia Alain <alain@phidani.be>
Newsgroups: comp.compilers
Date: 15 Jul 1996 11:38:15 -0400
Organization: Phidani Software Brussels
References: 96-07-035 96-07-052
Keywords: errors

> resler@liberty.mas.vcu.edu (Dan Resler) writes:
>
> >I am looking for pointers or references to descriptions where software
> >has compiled without error and later failed due to compiler-introduced
> >errors in the resultant program. In other words, the source was deemed
> >to be error free but the compiler botched the code generation. Any
> >help would be appreciated; thanks.


When porting the YAFL compiler to a mainframe environment, we ended up
with a real problem when the C compiler had to compile an overly complex
expression (+10 levels of nesting of C functions, up to 40 lines of
dense, very dense code). Instead of stopping saying that the code was
too complex, it simply generated crap instead. We had to disassemble
the generated code to make sure that something wrong was happening
(In practice, it seemed to mess with the various C functions that had
to be called, some were called more often then mentioned in the source
code, some were not called at all...)


Finally, we had to change the code generation scheme so that it could
split complex expression using temporary variables to solve the problem.


Amazingly, we have not been able to reproduce the problem on a sample.
It did fail repeatedly when dealing with the huge C programs generated by
the YAFL compiler, but it seemed to work well with hand-coded stuff, no
matter how complex we made it.


Unfortunately, we had no time to investigate any further...


Cheers,


--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.