Newsgroups: comp.sys.transputer
From: steved@inmos.co.uk (Stephen Doyle)
Subject: Re: Is the C toolset's compiler an Occam preprocessor?
Organization: INMOS Limited, Bristol, UK
Date: Fri, 4 Mar 1994 09:47:12 GMT
Message-ID: <1994Mar4.094712.29340@inmos.co.uk>

In article <mwesth.28.762627182@elaine.ee.und.ac.za> mwesth@elaine.ee.und.ac.za (M.J. VAN DER WESTHUIZEN : PGRADS) writes:
>Hi all transputer users,
>
>Occasionally when my transputer board overheats, the C compiler generates 
>garbage error messages (I know it is overheating because merely opening my 
>PC and adding a fan relieves the problem, closing it and removing the fan 
>repeats the problem).  The interresting point is that within the (
>mostly nonsense) error messages, I detect many Occam statements! (eg '
>REAL32' etc).  I can understand this if the compiler merely acts as a "
>translator" as many FORTRAN compilers are merely translating to C on early 
>Unix systems.  It would make also make sense to design the compiler in that 
>way when in-line OCCAM code segments is supported (it is with the Toolset 
>Compiler). 
>
>Any comments?

The INMOS Toolset C compiler is not a C to occam preprocessor, it compiles
ANSI C code straight to transputer object code.

If you are using the D7214 product the C compiler is running on the transputer
rather than the PC, the compiler has itself been compiled and pre-linked with a
mixture of C and occam libraries. The run time libraries could be the origin
of your confusion.

The C compiler can in-line assembly language statements but it cannot in-line 
occam code.

For your information there is a new product available the D7314 which compiles
and links on the PC (not the transputer), if you are running a reasonable speed
PC (386-20 +) you should find compilation and link time reduced.

regards,

Steve


Steve Doyle, Software Marketing, INMOS Ltd   | Tel +44 454 616616
1000 Aztec West                              | Fax +44 454 617910
Almondsbury                                  | UK: steved@inmos.co.uk
Bristol BS12 4SQ, UK                         | US: steved@inmos.com

