home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.ada
- Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!cnam.cnam.fr!bortz
- From: bortzmeyer@cnam.cnam.fr (Stephane Bortzmeyer)
- Message-ID: <199301051815.AA06597@cnam.cnam.fr>
- Distribution: world
- Organization: CNAM
- Subject: Crash your compiler (Was: Ada Readability, Book Reference)
- Sender: bortz@cnam.cnam.fr
- Date: Tue, 05 Jan 93 19:15:36 +0100
- X-Received: by usenet.pa.dec.com; id AA19021; Tue, 5 Jan 93 10:15:13 -0800
- X-Received: by inet-gw-2.pa.dec.com; id AA17118; Tue, 5 Jan 93 10:15:10 -0800
- X-Received: from cnam.cnam.fr by chenas.inria.fr (5.65c8d/92.02.29)
- via Fnet-EUnet id AA12434; Tue, 5 Jan 1993 19:15:06 +0100 (MET)
- X-Received: from localhost by cnam.cnam.fr with SMTP id AA06597
- (5.65c+/IDA-1.4.4 for comp.lang.ada.usenet@decwrl.dec.com); Tue, 5 Jan 1993 19:15:37 +0100
- X-To: comp.lang.ada.usenet
- X-Newsgroups: comp.lang.ada
- X-References: <1992Dec30.035143.10291@seas.gwu.edu> <1993Jan4.093155.11894@nobeltech.se> <1993Jan4.174424.5699@seas.gwu.edu> <1993Jan5.115003.29978@sei.cmu.edu>
- X-Mts: smtp
- Lines: 51
-
- In article <1993Jan5.115003.29978@sei.cmu.edu>,
- progers@ajpo.sei.cmu.edu (Pat Rogers) writes:
- > In article <1993Jan4.174424.5699@seas.gwu.edu> mfeldman@seas.gwu.edu
- (Michael Feldman) writes:
- ...
- > >This is interesting. I take it, then, that 1.0/3.0 will be flagged by
- > >the compiler, because - unless a rational representation is being
- > >used, which is always possible, I suppose - there aren't enough bits
- > >in a megabyte to evaluate it exactly. Do compilers use rationals
- > >for this? I'll be back later, after a test or two of this!
- ...
- > About seven years ago I saw this program (I think by John Squires) on
- > info-ada (this is a reconstruction from memory). See how long it takes
- > your compiler to give up on it -- use a batch queue if you can, especially
- > on a virtual memory machine. If it does eventually compile, you can just
- > add lines until it won't...
-
- Here are some results:
-
- 1) Sony/Risc under News/OS (sort of Unix BSD) with the Alsys/Systeam compiler:
-
- % time ada.c ../killer.ada
- Compiling: /users/labinf/bortz/ada/essais/killer.ada
- line 0, col 1, restriction:
- Overflow of digit pool in constant table
- compiler error at end of compilation unit:
- Compilation in SEMANTIC aborted
- PROCEDURE KILLER
- **** Number of Errors : 2
- 29.7u 0.5s 0:39.54 76.6% 337+196k 72+9io 354pf+0w
-
- (Thirty CPU seconds before giving up.)
-
- 2) DECstation under Ultrix (sort of Unix BSD) with the DEC compiler:
-
- % time ada.c ../killer.ada
-
- (Twenty minutes of CPU time later, the experimentator went to bed.)
-
- Does anyone have such a collection of "compiler killers"?
-
- Stephane Bortzmeyer Conservatoire National des Arts et Metiers
- bortzmeyer@cnam.cnam.fr Laboratoire d'Informatique
- 292, rue Saint-Martin
- tel: +33 (1) 40 27 27 31 75141 Paris Cedex 03
- fax: +33 (1) 40 27 27 72 France
-
- "C'est la nuit qu'il est beau de croire a la lumiere." E. Rostand
-
-
-
-