comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: Compiler quality
Date: Thu, 27 Nov 2008 11:24:20 +0100
Date: 2008-11-27T11:24:21+01:00	[thread overview]
Message-ID: <492e7554$0$30237$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <Y1lXk.44171$_Y1.18421@bgtnsc05-news.ops.worldnet.att.net>

anon schrieb:
> Your not understanding the concept finite for programs. And this explanation 
> does not the finite concept of hardware.

(Just for clarity, a program text is finite by definition.)

Please, could you give the cardinality of the set of 4kB-Ada programs
that a given compiler, such as GNAT 3.15p, can process, and decide,
on a PC of 1GB RAM, 200GB file space, within 1h?  I'd like to be
realistic, so I'll be glad to learn the factor F and an exponent
N in F*10**N.

How does this number compare to the cardinality of the set of Ada
programs of 6_000 .. 10_000 SLOC?  (That's roughly the size
of a book.)

How long does it take to demonstrate that a single Ada program
should map to one sequence of CPU instructions? (Else we have
not a single, complete, test case, because a compiled program may
just happen to produce expected results in some cases.)



> An example is like using the following statement
> 
>                    X := Sin ( A ) + Cos ( W ) ;
> 
> do use need to also create the statement
> 
>                    X := Cos ( W ) + Sin ( A ) ;
> 
> to prove that a simple mathematical statement is BUG free.  The answer is no! 
> So a vendor may use one not both to perform the test, to say the statement 
> checking is BUG free.  

Good example, because the order of FPT operations may affect
the result of the statements. So the answer is yes, you may
have to test both statements, with all kinds of inputs for W and A...
(Note that I'm not saying you need all *possible* inputs, just
those that one needs within the given FPT framework. They have been
named in extensive literature.)


> And using every statement that can be created is just overkill, but it can be 
> done. There are places in a compiler that are tested to the point of being 
> BUG free and that number of testing is finite. 

By your previous argument about bug free compilers,
a compiler is therefore the same as a place in a compiler,
as far as testing goes...



  reply	other threads:[~2008-11-27 10:24 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-15  9:16 Extending discriminant types Stefan Bellon
2008-11-15 18:50 ` Jeffrey R. Carter
2008-11-17 16:30 ` Adam Beneschan
2008-11-18 11:02   ` christoph.grein
2008-11-18 23:24     ` Adam Beneschan
2008-11-19  9:49 ` anon
2008-11-19 10:15   ` christoph.grein
2008-11-19 19:19     ` Georg Bauhaus
2008-11-19 11:38   ` Martin
2008-11-20  7:21   ` anon
2008-11-20  8:30     ` christoph.grein
2008-11-20  8:36       ` Ludovic Brenta
2008-11-20 11:45         ` Georg Bauhaus
2008-11-20 11:46           ` Georg Bauhaus
2008-11-20 23:01             ` anon
2008-11-21 11:54               ` Ludovic Brenta
2008-11-20 14:03           ` Dmitry A. Kazakov
2008-11-20 15:03           ` Robert A Duff
2008-11-20 15:57             ` Stefan Bellon
2008-11-21  0:32               ` Adam Beneschan
2008-11-20 16:11           ` Adam Beneschan
2008-11-20 22:59       ` anon
2008-11-21  0:29         ` Adam Beneschan
2008-11-21  7:25           ` anon
2008-11-21  9:19             ` Jean-Pierre Rosen
2008-11-21 10:11             ` christoph.grein
2008-11-21 12:00             ` Ludovic Brenta
2008-11-21 22:31               ` anon
2008-11-22  0:18                 ` Stefan Bellon
2008-11-23  4:06                   ` anon
2008-11-23  5:39                     ` Georg Bauhaus
2008-11-23  8:00                       ` anon
2008-11-24 10:08                         ` Georg Bauhaus
2008-11-24 22:16                           ` anon
2008-11-25 10:37                             ` Martin
2008-11-25 11:24                               ` Georg Bauhaus
2008-11-25 20:49                                 ` Jeffrey R. Carter
2008-11-25 21:01                                   ` Adam Beneschan
2008-11-25 22:09                                     ` Georg Bauhaus
2008-11-25 22:33                                       ` Jeffrey R. Carter
2008-11-26  0:58                                         ` Adam Beneschan
2008-11-26  1:45                                           ` Jeffrey R. Carter
2008-11-26  9:31                                             ` Martin
2008-11-26  9:38                                               ` Stefan Bellon
2008-11-26  9:48                                                 ` Martin
2008-11-26 10:16                                                   ` Stefan Bellon
2008-11-26 11:05                                                     ` Ludovic Brenta
2008-11-26 11:33                                                       ` Stefan Bellon
2008-11-26 15:49                                                       ` Adam Beneschan
2008-11-26 16:15                                                         ` Ludovic Brenta
2008-11-26 11:10                                                 ` Niklas Holsti
2008-11-23  8:48                     ` Compiler quality (was: Extending discriminant types) Ludovic Brenta
2008-11-24 23:33                       ` anon
2008-11-25  6:54                         ` christoph.grein
2008-11-25 10:01                         ` Ludovic Brenta
2008-11-26 23:34                           ` anon
2008-11-27 10:24                             ` Georg Bauhaus [this message]
2008-11-27 14:46                               ` Compiler quality Ludovic Brenta
2008-11-28  9:13                                 ` Martin
2008-11-28 10:28                                   ` Georg Bauhaus
2008-12-02  3:51                                     ` Randy Brukardt
2008-11-22 13:10                 ` Extending discriminant types Gautier
2008-11-24  8:24                 ` christoph.grein
2008-11-21  6:11         ` christoph.grein
2008-11-21 21:12           ` Jeffrey R. Carter
2008-11-22 16:41             ` sjw
2008-11-21 11:44         ` Martin
2008-11-20  9:55     ` Martin
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox