Re: Clear doubts regarding the C++ Runtime
- From: Chris Torek <nospam@xxxxxxxxx>
- Date: 31 May 2005 06:33:21 GMT
>ritesh wrote:
>> I have been reading some text on C and C++ (i.e advanced books). One
>> of the books mentioned that C++ requires a runtime support whereas C
>> does not ...
In article <OORme.488$IE7.256@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Tim Prince <tprince@xxxxxxxxxxxxxxxxxxxx> wrote:
>If you mean that it is usual to link shared libraries (such as .so or .dll),
>that is true of both C and C++, but C++ requires more of them. ...
I suspect the real question was more about RTTI and/or exception
handling, both of which complicate C++ enormously (compared to C).
Of course, comp.lang.c is the wrong newsgroup on which to discuss
either one.
>... Static linking will inflate the size of a C++ build much more
>than a C build. Reasons for the differences are surely not topical on
>c.l.c.
Indeed.
(In theory, of course, a C++ program that avoids using the RTTI
and exception features -- and much of the rest of C++ along with
them, since, e.g., "new" now throws exceptions -- could compile to
similary-small static-linked binaries. Of course, if one is going
to avoid all these C++ features, I would wonder why that one is
writing C++ code at all. If one simply wants, e.g., the convenience
of variable declaration at point of first use, C99 supports that
already; and quite a few C compilers, while not yet "full C99",
include this now as well.)
Last, a note to the original poster: the phrase "clear doubts", in
English, as used in the subject line means approximately: "these
are things I am pretty sure are wrong", not "could you expound on
something so as to clear up some questions I have". The word
"clear" here takes the role of an adjective, modifying the noun
"doubts", and means "these doubts are clear (i.e., should be obvious
to all)". The word "doubt", in turn, does not translate directly
to "question", but rather to "questionable items" or "dubious
things". The phrase "clear up", in which clear is a verb (rather
than an adjective), *does* mean "answer questions", but the word
"up" is usually required.
English, she is a funny old language. :-)
--
In-Real-Life: Chris Torek, Wind River Systems
Salt Lake City, UT, USA (40°39.22'N, 111°50.29'W) +1 801 277 2603
email: forget about it http://web.torek.net/torek/index.html
Reading email is like searching for food in the garbage, thanks to spammers.
.
- Follow-Ups:
- Re: Clear doubts regarding the C++ Runtime
- From: CBFalconer
- Re: Clear doubts regarding the C++ Runtime
- References:
- Clear doubts regarding the C++ Runtime
- From: ritesh
- Re: Clear doubts regarding the C++ Runtime
- From: Tim Prince
- Clear doubts regarding the C++ Runtime
- Prev by Date: Re: hashtable...squid
- Next by Date: Re: size of pointer variables
- Previous by thread: Re: Clear doubts regarding the C++ Runtime
- Next by thread: Re: Clear doubts regarding the C++ Runtime
- Index(es):