Re: C is too old? opinions?
- From: "jimmaureenrogers@xxxxxxxxxxxxxxxx" <jimmaureenrogers@xxxxxxxxxxxxxxxx>
- Date: 13 Jul 2006 14:07:17 -0700
Phlip wrote:
goose wrote:
Now I'm really curious; how does the garbage collector run in
deterministic time? Is it possibly a case of running the gc after every X
operations knowing that no more than Y memory has to be released and that
doing that will require no more than Z time?
Making a garbage collector deterministic would defeat the point of a
garbage collector - trading programming time for run time.
If the programmer must specify "please collect this and this object, now,
before the next real-time strobe", they might as well use pointers and
'free()'...
Along the same line of reasoning, how can you prove that a program is
deterministic in both time and memory using dynamic memory
allocation?
That problem was handled in the SPARK programming language by
prohibiting dynamic memory allocation in real time systems.
http://en.wikipedia.org/wiki/SPARK_programming_language
Many of the most interesting real time systems are also safety-
critcal systems. Examples include avionics, high speed train
control systems, and medical diagnostic systems. Each of those
areas require a process to certify that the software does what
it should when it should, and not something else. In short, the
software must be proveably correct.
Very few programming languages efficiently support the level
of proof required for safety-critical real-time systems.
Jim Rogers
.
- Follow-Ups:
- Re: C is too old? opinions?
- From: Rob Thorpe
- Re: C is too old? opinions?
- References:
- Re: C is too old? opinions?
- From: Rob Thorpe
- Re: C is too old? opinions?
- From: goose
- Re: C is too old? opinions?
- From: Phlip
- Re: C is too old? opinions?
- Prev by Date: Re: C is too old? opinions?
- Next by Date: Re: C is too old? opinions?
- Previous by thread: Re: C is too old? opinions?
- Next by thread: Re: C is too old? opinions?
- Index(es):
Relevant Pages
|