In article <1161668467.118539.92380@m7g2000cwm.googlegroups.c om>,
toton <abirbasak@gmail.comwrote:
Quote:
>Greg Comeau wrote:
Quote:
>In article <1161606675.404814.290040@b28g2000cwb.googlegroups .com>,
>toton <abirbasak@gmail.comwrote:
Quote:
>toton wrote:
Anyone have a link to comparative study of different C++ compilers
and how much they conform to C++ language standard? [...]
>
>But for some processors, like Motorola, TI (C6000, C5000 etc) supports
>only C.
>>
>But: :}
>I am not sure what you exactly want to say (I don't know meaning of the
>emotion) . But my point is that, for several microcontrollers I am not
>finding any C++ compiler (though many of them has a C compiler, some
>open-source like SDCC project).
I just meant to point to the paragraph below.
Quote:
Quote:
Quote:
>And Comeau Computing claims they can give a compiler on request for
>any platform (esp embedded ) which has atleast a C compiler to compile
>its source code! The claim may be perfectly valid, as they use the same
>frontend parser and some IR (Just like GCC! ) , and it is very easy to
>have a portable C compiler.
>In today's world if a microprocessor exists, one can assume a C
>compiler exists. Isn't it?
Usually.
Quote:
I think when a company plans for a new
>microprocessor, it chooses an ISA as a first job, and designs a C
>cross-compiler for that. Who writes substantial assembly code today!
Sure.
Quote:
Quote:
>It's not easy, but there is at least often a fighting chance :)
>Yes. But it is the best way to do it, and the chance is pretty high.
>That is why GCC and Comeau is doing it, and most of the Post C++
>languages comes with a runtime and its own IR representation.
Sure.
Quote:
Quote:
Quote:
>Still, there are a large number of embedded processors and
>microcontrollers which either doesn't have a C++ compiler or have a
>non-standard C++ compiler ,most of them will support C
>>
>But see above again :)
>Again, not getting your point.
Just again pointing out what you wrote ("Comeau... can give a compiler
on request...").
Quote:
Quote:
Quote:
(and I know why!
>given a weeks time, I can write a C compiler for a platform which is
>more than a toy! but can't for C++ where the parser and language
>construct is extremely complex! ) .
>>
>IMO a toy C compiler cannot be a C compiler 8}
>A C compiler is a few man years of work.
>--
>Yes, definitely. That is the difference between toy and real!
Well, kind of. That is, either you're writing a subset of
the language, or you're not.
Quote:
>But most
>of the time must be in optimization, not in parsing.
One would think so, but then parsing stuff always pops up.
In short, it's always harder than one thinks.
Quote:
And can you
>compare it with the effort given for a C++ compiler? Is it of same
>order or of a higher order?
Higher of course.
Quote:
>My point is just to have a study about how much C++ compilers conform
>to the standard. And if they don't, what is the reason (is it the
>evolving process of C++ standard, or the complexity of the parser and
>the language).
I think it's all the above, and then some. Some vendors wait
for a standard to be standardized before implementing it.
Others, have research and/or real works in progress on parts,
all along. Others, may have technical obstables. Others,
have marketing obstacles. And so on. I've foudn that the
reason is often that the sky is the limit. It's just like
any other project I guess.
Quote:
>It is difficult to MACROING the code everywhere to make
>it work for 5-6 different platform.
Always is.
Quote:
>The problem is minimal or nil for
>most of the languages (like FORTRAN, C, PASCAL, Java, C# , LISP, Perl,
>Python, PHP etc).
I never found that to be the case.
Quote:
>But surprisingly it exist till today in almost all of
>the major vendors of C++ compiler.
I find it to be a universal problem, though clearly not always exactly
equal and each language with its own set of pros/cons wrt this.
Quote:
>And the result is some code where
>MACROS dominate (Even Boost or STLPort is full of macro, forget about
>QT MOC,and wxWidgets MACROS) . So my point is knowing the present
>status of the C++ compilers and if they falls sort of standard, the
>reason.
I doubt you'll ever get to hear all the reasons.
--
Greg Comeau / 20 years of Comeauity! Intel Mac Port now in beta!
Comeau C/C++ ONLINE ==
http://www.comeaucomputing.com/tryitout
World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?