I'm running 4.3BSD-Reno on an emulated VAX-11/780. The C compiler
installed is the one from Berkeley, dated 1985-86 (according to `what`).
I've hit a bit of a roadblock because I can't find a way to list all of
cpp's pre-defined macros on this system. The method I use with GNU cpp doesn't work, and I don't have a man page installed for cpp
(the cc man page doesn't say anything about this either).
It may not be possible...
Can't find a manpage for cpp on 4.3 Reno, but I could find cpp
manpages for other 1986 systems which were essentially BSD with some
vendor's additions, and these don't mention a way to get a list of
predefined macros, they only say which macros were defined by that
particular vendor.
I may go and get the microVAX out of the attic and see if I can find a
way... unless somebody replies with a way first.
Thanks for your input. For now, I've settled with grepping
/usr/{include,sys} for #defines, but I'm sure the results are
incomplete. For example, 'vax' is missing, but it's still defined as a
macro, who knows where.
In the C preprocessor itself. Look for calls to stsym in /usr/src/lib/cpp/cpp.c
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 224:16:27 |
Calls: | 6,623 |
Calls today: | 5 |
Files: | 12,171 |
Messages: | 5,318,481 |