Newsgroups: comp.sys.transputer
From: mse@wolverine.utias.utoronto.ca (Manfred Sever)
Subject: OCCAM Compiler Directives
Organization: University of Toronto Institute for Aerospace Studies
Date: 12 May 94 21:45:51 GMT
Message-ID: <1994May12.174550.22108@jarvis.csri.toronto.edu>

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.

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?

Thanks in advance,

Manfred.

-- 
===============================================================================
Manfred D. M. Sever               |
                                  |
Space Robotics Group,             | E-mail: sever@ecf.utoronto.ca

