Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c++ Subject: Re: bad alloc Date: Sun, 04 Sep 2011 12:15:46 +1200 Lines: 47 Message-ID: <9cfu9iFsstU6@mid.individual.net> References: <28a1b207-f29e-4d7d-81ca-490aa64bb808@z18g2000yqb.googlegroups.com> <2fbfff0d-93f7-4fec-b8e8-288a738c87d6@a7g2000yqb.googlegroups.com> <1c6adaaa-885e-44f0-847d-5233ac36a36f@h11g2000vbc.googlegroups.com> <572117b6-60d3-4131-9b37-9f7eb7ba3142@z7g2000vbp.googlegroups.com> <4e6257c3$0$30717$5fc3050@news.tiscali.nl> <2cea740a-e454-49b0-b799-fae3ba8eec18@y21g2000yqy.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net TMt/OTNK5zzjJIAzihqdVwqyCC+KxslR6lP7GhDH4v3QNG0BHH Cancel-Lock: sha1:gkPiRPJ3nCNYWZbG66m3jBlSX/8= User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:9718 On 09/ 4/11 10:51 AM, James Kanze wrote: > On Sep 3, 9:39 pm, Paul wrote: >> On Sep 3, 5:37 pm, Dombo wrote: > >> If we are all to be perfectly honest about C++ for embeded systems. >> Does anyone actually use C++? > > It depends on what you mean by "embedded". I've certainly used > C++ in embedded systems, and it is my impression that for large > scale embedded systems (telephone routing, air traffic control, > etc.), it is widespread, with Ada being the only other language > used. That's my impression as well. C is still the dominant language for embedded systems. Even where C is still used, the teams I have worked with are keen to step up to C++. >> I did some searching on the web to find >> out what compilers exist for EC++ and there are a few. > > Many embedded systems use standard C++, not EC++. That's right, EC++ was an abomination that should never have been let loose on the world. >> I don't know if >> any of them support exceptions because EC++ has fewer features and one >> of the features not featured in EC++ is exceptions. > > In practice, the EC++ compilers are often C++ compilers as well, > with various compiler options to choose which C++ features are > active (and added to EC++). > > "Embedded" covers such a large domain that it is difficult to > speak about it generally. I've worked on locomotive brake > systems that fit in 2K of PROM, without any disk or OS, and I've > worked on telephone routing systems with more than a million > lines of code, running under Unix. Both are "embedded systems", > but the constraints are radically different. Ditto, my past "Embedded" projects range from single chip 8 bit micros through to large layer 3 switches, which run as a Linux cluster! On bigger systems, just like traditional servers, more than one programming language is used. -- Ian Collins