From owner-freebsd-questions Fri Jul 9 5:14: 0 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ivory.lm.com (ivory.telerama.com [205.201.1.20]) by hub.freebsd.org (Postfix) with ESMTP id C02B614D35 for ; Fri, 9 Jul 1999 05:13:46 -0700 (PDT) (envelope-from evs@telerama.com) Received: from mvehpc (d18-13.dyn.telerama.com [205.201.4.13]) by ivory.lm.com (8.8.5/8.6.12) with SMTP id IAA25632; Fri, 9 Jul 1999 08:13:36 -0400 (EDT) Message-ID: <003601beca04$87ad15e0$6f27abcd@mvehpc.evs.slip.lm.com> Reply-To: "Mikhail V. Evstiounin" From: "Mikhail V. Evstiounin" To: "Mark Ovens" , "Rezamys" Cc: Subject: Re: newbie: how to compile & run C program in 3.2Release? Date: Fri, 9 Jul 1999 08:13:58 -0400 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.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! My company is using gcc on HP-UX 10.20 and 11.0. I installed all versions of gcc starting from 2.5 on all our machines - HP boxes, IBM RS 6000 boxes, Sequent Boxes. As a result I am trying to follow any news in gcc world. There is a difference between 2.7.1.1 and 2.8.1 in terms of C++ (I believe, since version 2, gcc and g++ were combined as one compiler g++). 2.8.1 works with templates much closer to C++ standard v.3.0, but still doesn't have namespaces, correct exceptions and something else. According to docs, gcc 2.8.1 does a little better job in terms of optimizations. It can affect you if you use -O3 parameter. -----Original Message----- From: Mark Ovens To: Rezamys Cc: freebsd-questions@FreeBSD.ORG Date: Thursday, July 08, 1999 3:09 PM Subject: Re: newbie: how to compile & run C program in 3.2Release? >On Thu, Jul 08, 1999 at 11:33:07AM +0800, Rezamys wrote: >> Hi Mark, >> Okay, tried it last nite. It was fine. Thanks! >> I did this (very simple program...): >> >> #include [skipped] >I'm not sure what you're asking here. cc *is* a GNU compiler. If >you mean will gcc work, then yes, but you're already using it. The >default version with FreeBSD is 2.7.2.1, this is the only one >verified to build kernels. You can install gcc-2.8.1 (which you >use as gcc -o hello hello.c). This won't overwrite the default so >you will have 2 versions. > >I doubt, however, that you will need anymore than the default. > >OK, you done "Hello, World". Now get yourself a copy of Kernighan & >Ritchie (2nd edition), and carry on ;-). > >> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message