The pcc compiler is nearing 1.0. (via) This is seen as a gcc alternative, and it’s present in NetBSD/OpenBSD. I recall it didn’t work for DragonFly because of a lack of TLS support… Might be different now, if anyone wants to try. (see prior mentions on the Digest)
TLS support is there since Feb 2009 AFAIR, thanks to corecode.
Here’s a preliminary patch. Not really tested yet, breaks compatibility with old DFly, but it does compile and can build a working Hello World.
Nevermind, I overlooked lang/pcc-current in pkgsrc, which already has most of this.
All DragonFly patches, including x86_64 support, have been adopted upstream and the recent snapshots and BETAs work out of the box on DFly.
Note that right now the current version of lang/pcc-current does not yet include this, but it should be updated soon.