From owner-freebsd-questions Fri Nov 26 13: 0:32 1999 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.pit.adelphia.net (alpha.pit.adelphia.net [24.48.44.2]) by hub.freebsd.org (Postfix) with ESMTP id 26B97161C2 for ; Fri, 26 Nov 1999 12:59:24 -0800 (PST) (envelope-from evstiounin@adelphia.net) Received: from evstiouninadelphia (surf71-189.pit.adelphia.net [24.48.53.189]) by alpha.pit.adelphia.net (8.9.2/8.9.2) with SMTP id PAA18247; Fri, 26 Nov 1999 15:59:48 -0500 (EST) Message-ID: <003201bf3851$30268340$bd353018@evstiouninadelphia.net.pit.adelphia.net> From: "Mikhail Evstiounin" To: "Matthias Buelow" , "Oren Sarig" , "Marc Wandschneider" , Subject: Re: latest gcc? Date: Fri, 26 Nov 1999 15:59:52 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From: Matthias Buelow To: Mikhail Evstiounin ; Oren Sarig ; Marc Wandschneider ; freebsd-questions@FreeBSD.ORG Date: Friday, November 26, 1999 8:16 AM Subject: Re: latest gcc? >Mikhail Evstiounin wrote: > >>this is a case for FreeBSD too. You can't use this compiler to compile >>kernel, but it's more robust, faster and supports exceptions, has a better >>optimization, supports namespaces, etc. > > Of course you can't use this compiler to compile the kernel >since I don't think it would be possible to compile the kernel with a C++ >compiler. Before be too pedantic you should learn a little bit more about gcc and egcs (sorry for sarcasm). GCC is something like a "all in one" compiler. As a matter of fact, g++ is a wrapper around gcc. Moreover, you can use gcc to compile c++ code - just set all options in a right way and you are ready - it's about 30 options - and g++ does it for you. there is Ada, Fortran, Pascal and Java compilers in gcc (yes, you can compile java programs to a native code and it will run faster). All of them use the same optimizer and code generator. Yes, they have different syntax, and authors of a corresponding compiler provide gramma in flex/bison "notation". It's possible to right your own compiler using gcc stuff. It's not easy, but it definitly doable. In my life, I did it a couple of times - not with gcc, but with something very similar - using intermidiate language. Problem with Linux and, in my opinion, like i mentioned in my previous letter, FreeBSD, lies in optimizer - not in gcc or g++ analizer. There are very specific aliasing rules defined by standard. and newer version of gcc optimizer starts to take advantages of them. Old one accepted all this stuff and generated some code. Unfortunatelly, it worked like author of this code expected it to work. I said unfortunatelly because if it didn't work like author expected it to work then author would fix it. But this is a totally diferent issue. >mkb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message