This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Embedded C++


Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de> writes:

> > Does egcs support the embedded C++ standard (EC++) ?
> 
> I believe every EC++ program is also a C++ program (at least this is
> the intention), so any C++ compiler is also a EC++ compiler.

I thought part of the point of embedded C++ was that they wanted to
*reject* programs using various proscribed extensions, such as
templates (since they lead to code bloat) and namespaces ('cause
they're confusing, and besides, embedded programmers only write small
programs that aren't likely to have name conflicts), and indeed any
C++ extensions not specifically permitted, like all GNU C/C++
extensions.  So if the compiler accepts such things, I wouldn't expect
it to be thought of as a *good* EC++ compiler.  But what do I know?

They also have a few magic names (I haven't looked into how they're
supposed to be defined) that put back some of the important stuff that
would have gone away when they disallowed templates, including
float_complex and double_complex.  If those typedef names aren't
available via the STL or some other library, that's another point of
incompatibility.

Ken


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]