6 ms·
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 trie
by SeekingMeaning 7y ago
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++.
- vyjcgtyjb 7y agoMany use Microsoft's and Intel's.
- thenewnewguy 7y agoThis is a page about _open source_ compilers.
- oaiey 7y agoConsidering 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.
- StephanTLavavej 7y agoMSVC’s STL (which I work on) is now open source, under the Apache+LLVM license: https://github.com/microsoft/STL https://github.com/microsoft/STL . At this time, there are no plans to open source the MSVC compiler.
- deleted 7y ago[deleted]
- kick 7y agoPCC 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.
- Taniwha 7y agoAnd Unix
- 4ad 7y agoPcc 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 http://doc.cat-v.org/plan_9/4th_edition/papers/compiler [2] http://doc.cat-v.org/plan_9/4th_edition/papers/comp http://doc.cat-v.org/plan_9/4th_edition/papers/comp
- kick 7y agoYeah it was, you seem to be mistaken: http://doc.cat-v.org/plan_9/4th_edition/papers/comp 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.
- 4ad 7y agoNo, 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://man.cat-v.org/plan_9/1/pcc http://doc.cat-v.org/plan_9/4th_edition/papers/ape http://doc.cat-v.org/plan_9/4th_edition/papers/ape https://github.com/0intro/plan9/blob/master/sys/src/cmd/pcc.c https://github.com/0intro/plan9/blob/master/sys/src/cmd/pcc....
- 7y ago
- derjames 7y agoI do not use Elsa nor PCC. However I use TCC extensively for both Windows and Linux in production code.
- dman 7y agoCould you please tell why tcc works for your usecases? Asking so that I know when to reach for it.