Clang - what is the story?

Matthew Seaman m.seaman at
Sun Jan 22 11:59:14 UTC 2012

On 22/01/2012 11:50, Thomas Mueller wrote:
> While on the subject of Clang, is this compiler only for C, C++ and
> Objective-C?

Correct.  Clang is the LLVM front-end for that family of languages.

> What about Ada and Fortran? Does one need GCC for that? Dragonlace
> for Ada?

There are other LLVM front-ends for different languages.  Plus you can
use GCC to compile to an intermediate representation and then let LLVM
do the rest.

> I believe some of the ports require GCC. Many of these ports are
> developed primarily for Linux and subsequently ported to FreeBSD ports
> and NetBSD-based pkgsrc.

Clang aims to be completely gcc compatible.  It isn't quite there yet.

Most of the ports that don't compile with clang are actually doing
questionable things with their code that gcc should probably reject too.



Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP:     Ramsgate
JID: matthew at               Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-questions mailing list