[Minor] Anyone having the holy Green Hills C++ compiler docs?

Hi guys, this is now a matter of principle for me... I'm working on the new compiler identification macros for Boost.Config (see dedicated thread) and spent a whole morning trying to figure out something more detailed than what already is in "boost/config/compiler/greenhills.hpp". Incredibly, not even www.ghs.com has anything useful. The only references (not derived from boost code) that I found used either ghs or __ghs__ to identify the presence of the compiler (without inferring its version). And the only page which attempts to go further is: http://predef.sourceforge.net/precomp.html Does anyone have more info? Thanks. --Gennaro.

"Gennaro Prota" wrote:
ghs
or
__ghs__
to identify the presence of the compiler (without inferring its version). And the only page which attempts to go further is:
http://predef.sourceforge.net/precomp.html
Does anyone have more info?
Searching koders.com database yields: (http://www.koders.com/cpp/fid8F225581446140ED8D8D506AAFBA970556645563.aspx) yet another variant from Trolltech with a warning: ... /* Never tested! */ # elif defined(__ghs) ... /Pavel

On Sat, 17 Jun 2006 22:06:28 +0200, "Pavel Vozenilek" <pavel_vozenilek@hotmail.com> wrote:
Searching koders.com database yields: (http://www.koders.com/cpp/fid8F225581446140ED8D8D506AAFBA970556645563.aspx) yet another variant from Trolltech with a warning:
... /* Never tested! */ # elif defined(__ghs)
Yeah, I came upon that one too. __ghs is the variant that we use (and the warning also holds for us: we only support version zero ;)). It seems that all three of ghs, __ghs and __ghs__ have been valid for some versions (I suspect ghs was used for the C compiler, the other two for C++). With a little exception, the search has been enervating... I have looked everywhere, including the ACE source files. The only fun moment has been given by this little pearl of preprocessing humor (start from line 128): <http://gamedev.acm.cs.rpi.edu/projects/browser/phirestar/trunk/Common/RakNet/Include/Types.h?rev=743> --Gennaro.
participants (2)
-
Gennaro Prota
-
Pavel Vozenilek