Newsgroups: comp.sys.transputer
From: schedan@eskimo.com (Daniel Scheurell)
Subject: Re: OCCAM Compiler Directives
Organization: Eskimo North (206) For-Ever
Date: 14 May 94 04:32:20 GMT
Message-ID: <Cprz9x.9oM@eskimo.com>

Manfred Sever (mse@wolverine.utias.utoronto.ca) wrote:
: Fellow Transputer users,
: INMOS ANSI C allows compiler directives such as: ``#if defined'',
: ``#elif defined'', ``#else'' and ``#endif'' so that the same source
: code file can be compiled to yield object code, which is dependent on
: what has been defined using the ``-D'' compiler switch.

: The above can be a useful and powerful feature.
: My question is:
: HOW CAN THIS BE DONE USING THE OCCAM2 COMPILER?
: I have read the manuals and there seems to be no
: indication that a similar facility exists.

I don't think Occam provides any such capability.
Oh, how I've wished for it.

: Am I going to have to write many slightly different versions of the
: same OCCAM2 programme, where only ONE *.c file would have been
: necessary?
: What's the scoop?

I don't know, but I'd like to.

--

Dan

