Re: development of C++ compiler
- From: Phlip <phlip2005@xxxxxxxxx>
- Date: Mon, 25 Feb 2008 08:59:08 -0800
Grizlyk wrote:
There are C++ compilers, that has been written in old good C. Are C or
pascal perfect languages that can be used to build any powerful OO
language with mutable source representation, as C++ could be?
Obviously no.
Not obviously no. The only reason so many languages use C for their implementation is C has a stable standard that enforces a very high level of portability. So you can write a fully-compliant C compiler for anything, from a wristwatch to a Mars Rover. This implies that a language written in C is therefor well-defined, too.
Is current C++ can be used to build the OO language? Obviously no,
because unfortunatelly C++ simultaneously is not-trivial for
implementation in C or pascal, but quite limited for users.
Not obviously, because C++ has both a stable standard and a well-defined system to extrude C as its compiling layer. The only edge C has is it's older, so it has more cross-compiler support to all those platforms.
Some questions:
I have got a hint, that we can select "core of C++" (that does not
mean the core must be completely compatible with current C++ or its
subset) and use the not-mutable core language to build all concrete-
hardware "complete C++" compilers. The "complete C++" language can be
the powerful OO language with mutable source representation,
structured by dialects.
OO is already a port into C++. It's not the OO features that make C++ less widely useful than C. In fact the opposite is the case. C++ cripples its OO abilities to preserve backwards compatibility with C.
The core language properties must be:
- compiler of the core must be able to be easy implemented by C-like
language
Why "C-like"?
- the core must be very conservative (to resists all possible
improvements)
What's wrong with improvements?
Your remaining checklist indicates C, in its current role as "portable, well-defined, assembler"...
--
Phlip
.
- Follow-Ups:
- Re: development of C++ compiler
- From: Dmitry A. Kazakov
- Re: development of C++ compiler
- References:
- development of C++ compiler
- From: Grizlyk
- development of C++ compiler
- Prev by Date: To reduce your body weight & slim your body
- Next by Date: Re: Why is Object Oriented so successfull
- Previous by thread: development of C++ compiler
- Next by thread: Re: development of C++ compiler
- Index(es):
Relevant Pages
|