Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I mean Elsa and and PCC are cool, but who actually uses them? Clang and GCC are pretty much all there is, but regardless it’s nice to know what people have tried/are trying to do. These bullet points in particular make me want to tinker with PCC and see how much it is (and is not) capable of:

> The PCC source base is very small and builds quickly with just a C compiler.

> PCC doesn't support Objective-C or C++ and doesn't aim to support C++.



PCC was at one time basically the standard C compiler, and you can port it to just about any architecture you want in less than a day.

It also shipped with many historic operating systems, Plan 9 from Bell Laboratories being one of them, if I remember correctly.


Pcc was never used in Plan 9. The Plan 9 C compilers[1][2] were written by Ken Thompson, and later reused in the Go toolchain.

[1] http://doc.cat-v.org/plan_9/4th_edition/papers/compiler

[2] http://doc.cat-v.org/plan_9/4th_edition/papers/comp


Yeah it was, you seem to be mistaken:

http://doc.cat-v.org/plan_9/4th_edition/papers/comp

To make it easier to share code with other systems, Plan 9 has a version of the compiler, pcc, that provides the standard ANSI C preprocessor, headers, and libraries with POSIX extensions. Pcc is recommended only when broad external portability is mandated. It compiles slower, produces slower code (it takes extra work to simulate POSIX on Plan 9), eliminates those parts of the Plan 9 interface not related to POSIX, and illustrates the clumsiness of an environment designed by committee. Pcc is described in more detail in APE—The ANSI/POSIX Environment, by Howard Trickey.

I'm obviously aware that it wasn't the main compiler/compiler suite for Plan 9 (of which I've submitted links to papers about quite a few times), but it was there.


No, it wasn't. Pcc is just kencc ran through a special mode and with special APE libraries. It has nothing to do with S. C. Johnson's pcc.

> The pcc command acts as a front end to the Plan 9 C compilers and loaders.

http://man.cat-v.org/plan_9/1/pcc

http://doc.cat-v.org/plan_9/4th_edition/papers/ape

https://github.com/0intro/plan9/blob/master/sys/src/cmd/pcc....


Point ceded, sorry for being difficult!


And Unix


I do not use Elsa nor PCC. However I use TCC extensively for both Windows and Linux in production code.


Could you please tell why tcc works for your usecases? Asking so that I know when to reach for it.


When compilation speed matters a lot more than runtime. I use it when working on plain c codebases that are slightly larger. It compiles about 10-20x faster than GCC and clang on -O0 meaning 0.3s to run my code vs 5s.


That is a good reason!


Many use Microsoft's and Intel's.


This is a page about _open source_ compilers.


Considering how old this page is (2009 it seems) when they update it they should include msvc. Cannot imagine Microsoft will not open source it for another 10 years.


MSVC’s STL (which I work on) is now open source, under the Apache+LLVM license: https://github.com/microsoft/STL . At this time, there are no plans to open source the MSVC compiler.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: