Compiling FreeBSD with GCC 4.3+



Hi,

There has been an article recently published by phoronix
(http://www.phoronix.com/scan.php?page=article&item=pcbsd_vs_kubuntu&num=1)
that compares PC-BSD to Kubuntu. Kubuntu uses GCC 4.3.3 compared to
FreeBSD's GCC 4.2.2. There is a considerable performance difference between
the two OS's, the article contributes this difference to the compiler.

In order to check if this is so (and to get the speed improvements of GCC
4.3+) one needs to compile the ports (and preferable world/kernel as well)
with GCC 4.3+.

Is there an easy way to set this up and does anyone know the compatibility of
world/kernel/ports with GCC 4.3+?

Also has anyone tried this and benchmarked the result?

Regards,

David

Attachment: signature.asc
Description: This is a digitally signed message part.



Relevant Pages

  • Re: Compiling FreeBSD with GCC 4.3+
    ... that compares PC-BSD to Kubuntu. ... Kubuntu uses GCC 4.3.3 compared to ... FreeBSD's GCC 4.2.2. ... It's license is incompatible with world/kernel. ...
    (freebsd-questions)
  • Re: project preporcessor for GAS
    ... Assembler and via the ... there was GASP in past but ... ... gcc 4 on kubuntu 6.0.6 ...
    (comp.lang.asm.x86)