Newsgroups: comp.sys.transputer
From: nickt@ewd.dsto.gov.au (Nick Taransky)
Subject: HELP problem porting ANSI C from HP-UX to single transputer!
Organization: DSTO Salisbury, South Australia
Date: 21 Oct 1994 07:06:10 GMT
Message-ID: <387p92$shd@fang.dsto.gov.au>

I have had no experience with transputers and have been asked to port some of 
(my) ANSI C code which compiles and runs under HP-UX 9.01 to a single transputer (initially).

Below is some configuration information. I am assuming that the transputer is
set up correctly in the PC (its not my machine):

inmos imst805 - G25S CT9348 -16M (in 386 DX 40 AMD PC)

inmos C toolset: IMS D7214C (documentation Aug 1990, discs 25 Jun 1991)

The code consists of 1 main program and 2 "function libraries" (.h & .c files) 
whose functions are called from the main program. One of the function libraries 
calls functions from the other library. The header files are included in the appropriate files. Each function libraries consists of approximately 1-2000 lines of code and 40 - 50 functions.

The code compiles, links and is collected without error. At run time the process 
proceeds initially but hangs part way through. When changes are made (ie order 
of function calls) to the main program the program hangs in different functions. 
The problem does not seem to be related to the size of the data being processedor the size of the object code of the complied modules. It seems that a code pointer is being over written or some other problem of this type is occurring. I am reasonably confident that errors have not been made in pointer arithmetic. 

Is anyone aware of any bugs which could be causing this type of behaviour, or any newer releases of the toolset which would fix the problem. If from the above 
description any other suggestions come to mind it would be greatly appreciated.
I realise that it is entirely possible that I am doing something stupid but I
would hate to bang my head on the wall any longer if someone out there can help.

Thanks in advance.


Nick Taransky
EWD/ESRL DSTO
PO Box 1500 
Salisbury SA 5108
Australia

ph:  (08) 259 5482
fax: (08) 259 5254
email: nick.taransky@dsto.defence.gov.au

