Using newer version of GCC and binutils with the FreeBSD Ports Collection
|  | Next

## Using newer version of GCC and binutils with the FreeBSD Ports Collection
This article describes how to use newer versions of the GCC compilers and binutils from the FreeBSD ports tree. Custom GCC configurations are also discussed.

### Martin Matuska

`<mm@FreeBSD.org>`

Revision: 41645

Copyright © 2009 The FreeBSD Documentation Project

Legal Notice
Last modified on 2013-05-17 by gabor.
Abstract

This article describes how to use newer versions of the GCC compilers and binutils from the FreeBSD ports tree. Custom GCC configurations are also discussed.

## 1. Introduction

The default system compiler as of FreeBSD 8.0 is GCC version 4.2.1. In addition, the base system of FreeBSD includes binutils version 2.15. These versions are several years old and lack, among other things, support for recent CPU instructions like SSSE3, SSE4.1, SSE4.2, etc. Due to licensing issues, new versions of these applications will not be integrated into the base system. Luckily, it is possible to use a newer version of the GCC compiler (e.g. version 4.4) with the help of the FreeBSD ports tree.

|  | Next
|  | 2. Prerequisites

This, and other documents, can be downloaded from http://ftp.FreeBSD.org/pub/FreeBSD/doc/

For questions about FreeBSD, read the documentation before contacting <questions@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.