George Peter Staplin <ge************ ***@xmission.co mwrites:
>
Unfortunately making an accurate GC for C would require compiler
support, and even then it would break in some cases due to the design of
C.
Yes it would change considerably instead of
"The programmers knows what he does" it would be
"The programmer knows what he does but I know better in the dynamic
memory allocation area"
that alone suggest it would be more complex ;-)
>
Some people are content with a few false references and thus the Boehm
GC works for them. I hope that their software isn't used for something
involving human lives, and that the allocations retained aren't
large.
I can not folow the arguments follow you mean the GC has bugs while
collecting things it is not supposed to collect or how do I have to
understand that.
This thread now has goten quite long. And many good and not so good
arguments were brought up. But seein it in a context of safety-critial
I think it's just one part (and I would think a smaller problem) to
have or not to have GC.
I for my part am nervouis with both alternatives, and I think
programmers should feel a bit uneasy about that area be it that they
support GC or beeing against it. There are so many other things which
can go wrong.
But let's see what might lead to use of C despite it's
shortcomings. It seem one thing C is well beyond nearly every other
language under the programming sun is that C compilers are now around
for more than 50 years. And the shortcomings have been surely
recogniced and they lead to a really big industry for "handling those
shortcomings". So I'd argue there's hardly a language whith more tools
for "getting around the early design decisions" than for every other
language.
Well nearly every other language does not need them. But are those
tools as mature? The questions still would be how one can judge that?
For C the "history of things implemented" is IMHO a hint on how "good
C really is" nearly all our "base tool" are based on C. Be it the
Operating Systems, Databases or any kind of Server. So I think one can
conclude that C is in the top of the maturity list. Probably this has
lead to use C in areas where there might be (theoretical or practical)
better alternatives. Howerver any time I read about safety-critical
software I have a somehow ungut feeling. But isn't somehow larger
while thinking of using GC with C or sticking to the manual memory
handling....
Regards
Friedrich
--
Please remove just-for-news- to reply via e-mail.