|
|||
PCC reached version 1.0
|
|
||||
Any recent updates on the OpenBSD+PCC combo?
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
Not really, no, Anders Magnusson had commit access to OpenBSD's CVS repository once.. but he hasn't committed since 2009.
There hasn't been any commits to pcc in OpenBSD's tree lately, It seems as if developer interest has died down a bit.. mostly due to PCC only supporting i386/amd64 primarily at the moment. OpenBSD will probably continue using GCC until maintaining their forks of gcc2/3/4 is no longer feasible.. they can't port bugfixes from upstream GCC due to the license change to GPLv3, fixes have to be done independently or taken from other forks. |
|
|||
Quote:
|
|
||||
I really wonder what is worse nightmare, having to implement the necessary ports of PCC, or maintain the relevant pieces of GCC :-/.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
There is some C++ in Xenocara, notably Mesa. So either it will have to be rewritten or disabled, or gcc will be kept around to deal with it.
Architecture support is improving in PCC (such as MIPS, iirc) but currently not up to the OpenBSD standard either. PCC is easy to extend to new architectures—the i386 port took only a few days—but that requires someone willing to work on and maintain the compiler for that architecture…
__________________
Many thanks to the forum regulars who put time and effort into helping others solve their problems. |
|
|||
Xenocara is part of the base system, as is Mesa.
Building the userland, including X, has never involved the ports tree.. and while regular users are not encouraged to build X themselves, that doesn't mean it isn't a critical component of the base system that gets built by the developers. These days it's almost discouraged NOT to install the X sets. |
|
||||
Quote:
|
|
|||
But we're talking about building, in which case all of Xenocara is compiled and then the sets are built.
|
|
||||
For C++, it may be a moot point for PCC, from the referenced article ->
Quote:
Last I can remember, OpenBSD did have support for C, C++, and Fortran but it's been a while since I've cuddled up to OpenBSDs base system.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
||||
As long as there's a good clean separation between parsers and code generators (yes, that's an extreme oversimplification), a C++ frontend shouldn't really impact the architecture-specific code generators. Perhaps I've oversimplified to the point of overlooking issues, but my understanding is that keeping the frontend and backend as separate as possible (something that gcc does a piss-poor job of) alleviates these issues.
|
|
|||
But I said almost!
|
|
|||
Actually this is correct, & I can vouch that one commercial i386 compiler did just this. Front-end problems were completely divorced from code generation issues.
|
|
||||
Quote:
I've actually considered digging into the PCC code and seeing what I can do to help it along...but I rarely have time for side projects =\ |
|
|||
Everything is fair in love & war & compiler implementation, but separation between front-end syntax checking, intermediate parse tree creation, & back-end code generation can be an easy discipline to maintain. With as many processors that gcc supports, one would think that separating out the code generation code would be a given, but I haven't looked at it, so I can only conjecture.
|
|
||||
GCC doesn't separate back and front ends by design!!! RMS was afraid that such a properly designed compiler would be more interested for industry to "steal" . You can find about some of similar "bright" ideas and the reasons for their implementation from various e-mail list all over the Internet.
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
pkg_add_it - new version | DNAeon | FreeBSD Ports and Packages | 5 | 14th November 2010 01:43 AM |
Ports Version associated with FreeBSD version | rtwingfield | FreeBSD Ports and Packages | 4 | 7th June 2010 11:00 PM |
LLVM milestone reached - Clang compiler self-hosts | J65nko | News | 0 | 5th February 2010 03:48 PM |
pop3d: Maximum connection limit reached for ... | kheled | FreeBSD General | 1 | 25th June 2008 05:16 PM |
How I can have two version of zsh | mfaridi | FreeBSD Ports and Packages | 7 | 15th May 2008 05:56 PM |