Clang - what is the story?
rsmith at xs4all.nl
Mon Jan 23 20:15:08 UTC 2012
On Mon, Jan 23, 2012 at 08:53:36AM +1000, Da Rock wrote:
> On 01/23/12 07:26, Chad Perrin wrote:
> > On Sun, Jan 22, 2012 at 09:33:02PM +0100, Roland Smith wrote:
> >> PCC is only a C compiler, and there is some C++ code (e.g. groff) in the base
> >> system. The FreeBSD port is marked as i386 and amd64 only, even though other
> >> architectures seem to be there in the PCC source.
> > I had somehow forgotten there was anything in the base system written in
> > C++. That would probably account for the choice of Clang over PCC.
> What part is that? I thought it had to be all c...
To the best of my knowledge the restriction to C only applies to the kernel
and libraries, not to the utilities in the base system. And it is for a
technical reason. C++ "mangles" function names to e.g. include argument types
and class names. See
This practically means that you can use a C library from a C++ program, but not
the other way around.
Then again, the kernel has more restrictions. Like no floating point allowed
and no libc available. And presumably many more w.r.t. locking of data
structures and practical limits on interrupt handlers.
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20120123/a2c484be/attachment-0001.pgp
More information about the freebsd-questions