2. Prerequisites

2.1. Installing binutils from ports

To make use of all of the new features in the latest GCC versions, the latest version of binutils needs to be installed. Installation of the newer version of binutils is optional; but without it, there will be no support for new CPU instructions.

To install the latest available version of binutils using the FreeBSD ports tree, issue the following command:

# cd /usr/ports/devel/binutils && make install

2.2. Installing GCC from ports

The FreeBSD ports tree offers several new versions of GCC. The following example is for the stable version 4.4. However, it is possible to install previous or later development versions (e.g. lang/gcc43 or lang/gcc45).

To install one of the mentioned GCC ports, run the following command:

# cd /usr/ports/lang/gcc44 && make install

All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.