Newsgroups: comp.sys.transputer
From: abs@ukc.ac.uk (Andrew)
Subject: INMOS D0305 occam toolset compiler error message and optimisation
Organization: University of Kent at Canterbury, UK.
Date: Mon, 18 Jul 94 11:09:28 GMT
Message-ID: <9819@eagle.ukc.ac.uk>


Hi,

Just when you had sorted everything out you upgrade your compiler and it
spits out error messages which you don't understand (and complains at
how bad you write code - but we don't want to go into that here:-)).

I can't find this one in the documentation! What I have is some code
which looks like this:

	PLACE DSP AT (#2000002C >< (MOSTNEG INT)) >> 2 :
	-- a few more placements similar to this
	-- DSP is not used or declared anywhere else

	INT INLINE FUNCTION rddsp() IS DSP :
	-- a few more functions similar to this

Then the compiler gives me this:

	Error-occ-scsi_drv.occ(1647)- Aliasing error, `DSP' is a free variable

for every line I use the function. If I move the placement right before
the function declaration it goes away, but I don't want it there! And
whats more it doesn't complain for the 32 other registers I place and
access in an identical way! 

Can anyone explain whats going on? 

Also I had a little advertising sheet before I purchased the D0305 occam
compiler saying that it produced optimised code. In the documentation I
can not find any references to the optimisations it uses and what
performance increase I should expect to gain. Does anyone know anything
about this ?

Thanks for any help,

Andrew
--
Andrew Smith

Computing Laboratory, University of Kent, Canterbury, KENT, CT2 7NF, UK

