comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: RISC
Date: Wed, 21 Mar 2001 12:36:04 -0500
Date: 2001-03-21T17:36:20+00:00	[thread overview]
Message-ID: <99aoqk$jsm$1@nh.pace.co.uk> (raw)
In-Reply-To: lW4u6.325$fy.827@www.newsranger.com

Back when I was doing engine controls, we'd get started talking about how
the DEC compilers could generate different code depending on available
memory & what else was running, etc. Our Configuration Management person
would plug her ears and go "I can't hear you YAYAYAYAYAYAYAYA!!!!!!" :-) It
was a real worry for Formal CM that we couldn't absolutely GUARANTEE that
given the same source code, the same compiler, the same machine and two
different days of the week, that we couldn't get the same set of bits out
the back end.

However, I'd consider your statement about "not *ever*" to be a bit strong.
Remember that we were originally talking about doing an overlay by forcing
two things to reside at the same spot in memory. If I could get my compiler
to do this at all reliably for one structure, it would be a reasonably safe
assumption that on two different days of the week, that same structure is
going to reside at that same location in memory. (Otherwise, how do I deal
with memory mapped devices?) It also seems reasonable that if I got one "for
use at" to put something in memory at a specific location and another "for
use at" to put a different thing at the same location, and I don't switch
compilers, that on a different day of the week, I'll still have those two
things residing at the same spot in memory. (This sort of thing is done all
the time at low levels of code - getting access to the same physical memory
locations from two different perspectives/locations in the code.)

Granted, if I pull some sort of trick with access types and start counting
on an optimization to fool the compiler into dealing with an overlay, I may
have different problems. But I'm talking about a plain vanilla overlay.

At some point you have to have *some* level of trust (based on conversations
with your vendor, knowledge of the compiler, evidence in the documentation,
etc.) that even "erroneous" things will work properly within some known
parameters. Otherwise we're down to discussing what might happen to the code
if the sun expands to 10 times its current size and the Earth is totally
engulfed in fire. (I guess the program crashes and your rocket/payload
augers in - tough noogies! :-)

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/



"Ted Dennison" <dennison@telepath.com> wrote in message
news:lW4u6.325$fy.827@www.newsranger.com...
> In article <99ae0k$g0j$1@nh.pace.co.uk>, Marin David Condic says...
> >
> >Very true. This is why lots of mission critical systems *freeze* a
version
> >of the compiler at some juncture in the project. Better the bugs you know
> >than to have something totally unexpected show up in a new release.
>
> But that isn't even sufficient to keep you safe from erronious code.
Assuming
> that the generated code might be affected by how the compiler decides to
> optimize (a quite reasonable assumption), then your code could cease to
work if
> any of the following happen:
>
> o  You recompile with a different set of options.
> o  You change a line of code somewhere in the entire system and recompile.
>
> and in some cases (notably the old DEC Ada compiler)...
> o  You compile on a different machine.
> o  You compile on the same machine, but with a different amount of free
RAM
> (different set of background processes running at the time).
>
> You really should not *ever* use erronious code unless you have some kind
of
> good assurance from your vendor that it will behave predictably (often the
> vendor docs will mention some such instances). I suppose having access to
the
> sources of your compiler and checking it over yourself might count, but
that
> would probably be more work than finding a better way.
>
> ---
> T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
>           home email - mailto:dennison@telepath.com





  reply	other threads:[~2001-03-21 17:36 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-14 20:23 RISC chris.danx
2001-03-14 21:57 ` RISC Tucker Taft
2001-03-14 22:36   ` RISC chris.danx
2001-03-14 23:03     ` RISC Fraser Wilson
2001-03-15  1:30       ` RISC Corey Ashford
2001-03-15  9:19       ` RISC chris.danx
2001-03-15 12:37 ` RISC chris.danx
2001-03-15 13:03   ` RISC Tarjei T. Jensen
2001-03-15 18:29     ` RISC Robert A Duff
2001-03-15 14:40   ` RISC Ted Dennison
2001-03-15 14:49     ` RISC Robert A Duff
2001-03-15 17:37       ` RISC Marin David Condic
2001-03-15 18:28         ` RISC Robert A Duff
2001-03-15 19:16           ` RISC Marin David Condic
2001-03-16  8:44             ` RISC Martin Dowie
2001-03-16 14:40               ` RISC Marin David Condic
2001-03-20 10:17                 ` RISC Martin Dowie
2001-03-20 14:34                   ` RISC Marin David Condic
2001-03-20 15:45                     ` RISC Ted Dennison
2001-03-20 16:39                       ` RISC Robert A Duff
2001-03-20 18:10                       ` RISC Martin Dowie
2001-03-20 18:56                         ` RISC Ted Dennison
2001-03-22  9:16                       ` RISC - largish (code listed) Martin Dowie
2001-03-22  9:34                         ` Martin Dowie
2001-03-20 18:09                     ` RISC Martin Dowie
2001-03-20 20:00                       ` RISC Marin David Condic
2001-03-20 22:30                         ` RISC Robert A Duff
2001-03-20 22:48                           ` RISC Ted Dennison
2001-03-20 23:10                           ` RISC Marin David Condic
2001-03-21  0:18                             ` RISC Robert A Duff
2001-03-21 14:31                               ` RISC Marin David Condic
2001-03-21 16:47                                 ` RISC Ted Dennison
2001-03-21 17:36                                   ` Marin David Condic [this message]
2001-03-16 15:09             ` RISC Tucker Taft
2001-03-16 17:10               ` RISC Robert A Duff
2001-03-16 19:02                 ` RISC Marin David Condic
2001-03-16 20:58                   ` RISC Robert A Duff
2001-03-19 16:17                     ` RISC Marin David Condic
2001-03-19 16:45                       ` RISC Florian Weimer
2001-03-19 17:14                         ` RISC Marin David Condic
2001-03-19 17:33                           ` RISC Florian Weimer
2001-03-21  5:57                           ` RISC Lao Xiao Hai
2001-03-16 22:19                   ` RISC Ted Dennison
2001-03-16 19:13                 ` RISC Laurent Guerby
2001-03-16 20:30                   ` RISC Robert A Duff
2001-03-16 20:51                 ` RISC Ole-Hjalmar Kristensen
2001-03-16 18:33               ` RISC Marin David Condic
2001-03-16 20:45                 ` RISC Robert A Duff
2001-03-17  1:13                   ` RISC Randy Brukardt
2001-03-19 16:34                   ` RISC Marin David Condic
2001-03-19 17:49                     ` RISC Robert A Duff
2001-03-16 20:08 ` RISC chris.danx
2001-03-16 20:31   ` RISC Marin David Condic
2001-03-17 21:51     ` RISC Robert A Duff
2001-03-18  6:37       ` RISC Charles Hixson
2001-03-19 15:42         ` RISC Robert A Duff
2001-03-19 17:02         ` RISC Marin David Condic
2001-03-19 17:45           ` RISC Robert A Duff
2001-03-19 18:48             ` RISC Marin David Condic
2001-03-19 16:45       ` RISC Marin David Condic
2001-03-16 22:27 ` RISC chris.danx
2001-03-17  2:49   ` RISC Jeffrey Carter
2001-03-19  9:43   ` RISC Martin Dowie
2001-03-19 11:06     ` RISC chris.danx
2001-03-28 22:24     ` RISC chris.danx
2001-03-29  0:52       ` RISC Corey Ashford
2001-03-29 12:42       ` RISC John English
2001-03-22 20:11 ` RISC chris.danx
2001-03-22 20:51   ` RISC Marin David Condic
2001-03-22 21:02   ` RISC tmoran
2001-03-22 21:18     ` RISC chris.danx
2001-03-22 21:45   ` RISC Britt Snodgrass
2001-03-22 22:43     ` RISC chris.danx
2001-03-28 11:37   ` RISC chris.danx
  -- strict thread matches above, loose matches on Subject: below --
2001-03-16 23:25 RISC Beard, Frank
2001-03-17 11:39 ` RISC chris.danx
2001-03-29  3:12 RISC Beard, Frank
2001-03-29  7:28 ` RISC Martin Dowie
2001-03-29 12:38 ` RISC chris.danx
2001-03-29 19:07 ` RISC Chad R. Meiners
2001-03-29 17:52 RISC Beard, Frank
2001-03-30 17:31 RISC Kent Paul Dolan
replies disabled

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