From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5d71,d275ffeffdf83655 X-Google-Attributes: gidf5d71,public X-Google-Thread: 1108a1,d275ffeffdf83655 X-Google-Attributes: gid1108a1,public X-Google-Thread: 109fba,d275ffeffdf83655 X-Google-Attributes: gid109fba,public X-Google-Thread: 101b33,d275ffeffdf83655 X-Google-Attributes: gid101b33,public X-Google-Thread: 115aec,d275ffeffdf83655 X-Google-Attributes: gid115aec,public X-Google-Thread: 146b77,d275ffeffdf83655 X-Google-Attributes: gid146b77,public X-Google-Thread: f849b,d275ffeffdf83655 X-Google-Attributes: gidf849b,public X-Google-Thread: 103376,d275ffeffdf83655 X-Google-Attributes: gid103376,public From: Scott Johnson Subject: Re: Thanks everyone! (was Re: Ada vs C++ vs Java) Date: 1999/01/19 Message-ID: <36A57A3E.BA4@nospam.aracnet.com>#1/1 X-Deja-AN: 434716437 Content-Transfer-Encoding: 7bit References: <369C1F31.AE5AF7EF@concentric.net> <77o1qr$8iu3@svlss.lmms.lmco.com> <36a32a9d.12623551@news.demon.co.uk> <780j6i$7522@svlss.lmms.lmco.com> <781psh$1j1@news3.euro.net> <7822a2$dm2$1@newnews.global.net.uk> Content-Type: text/plain; charset=us-ascii Organization: National Association for the Advancement of Computer Geeks Mime-Version: 1.0 Reply-To: sj_nospam@nospam.aracnet.com Newsgroups: comp.lang.ada,comp.lang.c++,comp.vxworks,comp.lang.java,comp.java.advocacy,comp.realtime,comp.arch.embedded,comp.object,comp.lang.java.programmer Date: 1999-01-19T00:00:00+00:00 List-Id: John Birch wrote: > > Martijn Lievaart wrote in message <781psh$1j1@news3.euro.net>... > > >I just want to thank everyone participating in this thread for making it a > >hugely informative thread without evolving into holy wars. It seems we > *are* > >getting better at that! > > Yep, I certainly learnt something! > > Now, anybody know of a good embedded C++ compiler? Last time I used C++ it > was MS version 7 in an embedded environment! Perhaps that's soured my > grapes. I keep hearing things about gcc, is it any good for hard embedded > work? Works fine for me. Of course, my "embedded" environment is a PowerPC machine with 32MB of RAM, running vxWorks. :) gcc has the advantage of source, so porting it to different environments (assuming a backend for the architecture in question) isn't hard. Full ANSI support isn't quite complete as of 2.8.x (egcs gets a little better), but this probably isn't an issue with a hard embedded environment. Keep in mind that C++ requires a bit more support from the implementation (in other words, the OS or whatever you have that acts like an OS) than does C. With embedded targets, the compiler driver cannot resolve static constructors and destructors automagically like it can on a peecee or Unix box; you will have to arrange for this. Dealing with exceptions may also be a bit problematic. OTOH, if you dispense with the gargantuan standard libraries (or at least the parts of it that get really big), the generated code shouldn't be significantly worse than a C compiler. Scott