News for hackers. Stuff that matters.
Re:Portable C Compiler 1.0 released by rwmj on Sunday April 03, 2011 @11:45AM (#2402969)
The original motivation (from back in 2007) was threefold:

(1) BSD licensed, which was felt to be preferable to GCC (ie. GPL) for BSD developers.

(2) It's supposed to compile things 5-10 times faster than GCC.

(3) Very portable to new architectures; obviously a good thing for NetBSD which is ported to just about everything.

LLVM doesn't figure into this; perhaps it was unknown or not very capable back in 2007?

Source: http://marc.info/?l=netbsd-tech-toolchain&m=118961767521...

Re:Portable C Compiler 1.0 released by _delirium on Sunday April 03, 2011 @02:16PM (#2403382)
Although LLVM existed and was fairly well known, it was a middle/backend-only project until mid-2007 or so, and used gcc as the language frontend. Clang's first source release wasn't until July 2007, and I don't think it got much traction until 2008, and a 1.0 release in late 2009. So it seems plausible that a September 2007 discussion wouldn't have it on the radar.
Re:Portable C Compiler 1.0 released by dwc on Sunday April 03, 2011 @12:25PM (#2403072)
Also in (3), very portable to old architectures. PCC is written in C, where LLVM/Clang is C++. This makes one less hurdle to bootstrapping a new compiler on some archs.
Re:Portable C Compiler 1.0 released by Hoff on Sunday April 03, 2011 @12:45PM (#2403140)
From experience in porting an OS, common porting scaffolding can include a cross compiler and a cross linker, and replacing an assembler with a compiler for compiling the assembly code for the new target box.

Getting a native build and a native C++ and a native assembler re-hosted can then proceed secondary to getting the basic OS pieces booted and rolling.

Re:Portable C Compiler 1.0 released by nickbp on Sunday April 03, 2011 @01:10PM (#2403195)
With regard to 2, I don't care so much about compile speed (within reason) as I do about the speed of the produced binary. How fast is the output?
Re:Portable C Compiler 1.0 released by tedunangst on Sunday April 03, 2011 @01:41PM (#2403301)
Depends entirely on what particular optimizations apply to your code. Overall, pcc is probably within 10% for most code, but you'll also find examples where gcc or llvm is 10x faster. It all depends.
Re:Portable C Compiler 1.0 released by protomyth on Sunday April 03, 2011 @04:21PM (#2403757)
If your maintaining code on a VAX, you care a tad bit about compile speed.