Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Oct 2007 17:08:30 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        freebsd-questions@freebsd.org, James Jeffery <cascadingstylez@googlemail.com>
Subject:   Re: C++ Compiler On FreeBSD
Message-ID:  <20071007150830.GC84686@slackbox.xs4all.nl>
In-Reply-To: <20071006163312.GB61195@demeter.hydra>
References:  <972994690710061253q483e26ber68f4716d3202d1fa@mail.gmail.com> <20071006201356.GB55336@slackbox.xs4all.nl> <20071006163312.GB61195@demeter.hydra>

next in thread | previous in thread | raw e-mail | index | archive | help

--vOmOzSkFvhd7u8Ms
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Oct 06, 2007 at 10:33:12AM -0600, Chad Perrin wrote:

> In the Unix world (such as with FreeBSD), I'd recommend C before C++,
> too -- though probably long after Ruby or Perl.

Too right. But it should be noted that both C and C++ give you enough
rope to hang yourself with.

My preference for doing things is;

1) Can it be done with a shell-script? (esp. one-time hacks)
2) Else use Perl, Octave, Ruby, but
3) If speed is key, use C. :-)

> > > Im using Borland C++ compiler on XP and was wondering what compilers
> > > there are for FreeBSD that would allow me to compile and execute some
> > > of the examples i will practise from the book.
> >=20
> > FreeBSD comes with the GNU C++ and C compilers installed. There are
> > others available (Intel) or in progress (OpenWatcom).
>=20
> Also in progress is the TenDRA compiler, though FreeBSD support is part
> of what's "in progress".

Both OpenBSD and NetBSD (pkgsrc) have recently imported Anders Magnusson's
BSD-licensed pcc compiler. At this time it is i386 en C only. In time
this might be a faster (as in compile-time) alternative to gcc.

Roland
--=20
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--vOmOzSkFvhd7u8Ms
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHCPZuEnfvsMMhpyURAqNKAJ44hsP2pVl0vBOKmGwvGXxlMBHW+gCfbZMT
f9tn/iTXRMzeCmefTcHkllA=
=8Rz7
-----END PGP SIGNATURE-----

--vOmOzSkFvhd7u8Ms--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071007150830.GC84686>