[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C pre-processors for GS



A recent posting (I forget where and don't use a fancy system to keep
track of my email) asked about preprocessors for C on the GS.
 
I have one, which came via my user group, some years ago. It has
problems, principally that it doesn't seem to like handling pre-processor
lines which have a comment attached. However, it does come with
source-code, so it could be fixed. I didn't bother, because I've always
found the Orca/C pre-processor to be perfectly adequate for my needs.
Having the source would also mean that it could be enhanced, if anyone
wanted to make the effort.
 
I also have the source-code for a specialised pre-processor which
implements object-oriented programming - not classical C++, mostly
because that hadn't been formalised when this was written, but a style
which does pretty much the same. It was written by David MacLean, the
author of Hyper C, the 8-bit compiler for the Apple, and one of the
finest programmers I have ever had the honour to meet. What few people
seem to know is that there was another version which ran on the Sage, a
68000-based machine, and for which this pre-processor was originally
designed.
 
Therein lies the problem of this source - David told me that in order to
produce an Apple version, it would be necessary to have access to a Sage,
complete with a copy of Hyper-C for it, and I seem to remember that he
implied that it would also be necessary to have access to an executable
version of the pre-processor. However, there must, at some stage been a
'bootstrap' version, which didn't need any support.
 
OK, does anyone have any memories of this machine/compiler combination,
or even better, have access to a functioning system? Alternatively, does
the idea of messing around with a fairly decent object-oriented extension
to C appeal to anyone so much that they'd be prepared to try doing the
job on the 'bare metal'?