Newsgroups: comp.sys.transputer
From: gperkes@st.nepean.uws.edu.au (Graeme Perkes)
Subject: 3LC *large* static arrays
Organization: University of Western Sydney, Nepean
Date: 13 Apr 1994 23:56:13 GMT
Message-ID: <2oi0qt$hah@ob1.uws.EDU.AU>

Hi,

I am having difficulty with tasks containing large static data structures
under 3LC.

The code looks something like: (I'll call the task DVA)

    #define HistX (512)
    #define HistY (512)

    typedef int HISTOGRAM[HistX * HistY];

    HISTOGRAM dva_hist;


The size of the "dva_hist" data structure is 1 MEG and the compiled task is 
approx 1.1 megabytes.

DVA is duplicated across a number of transputers. The application
runs succesfully when DVA is only placed on 4 MEG T805 TRAMS.

Situations where the application will not run are:

	* a DVA is placed on a 2 MEG T800 TRAM

	* Two DVA's are placed on the one 4 MEG T805 TRAM (for testing)
          I've got that memory there - I want to use it!!!

I suspect that there may be a problem using the T800 TRAMS (I have tried
the /t8a compiler switch with no success).

Perhaps I should be using extra/different settings in the config file. The
current line I am using is:

	task dva1 file = dva	ins=1 outs=1 data=1500k ! give plenty of room
	task dva2 file = dva	ins=1 outs=1 data=1500k ! ditto

If you have any suggestions then please let me know. I am running out of
4 meg TRAMS and our 2 MEG ones are being wasted.

Regards,

--

 ,-_|\     Graeme Perkes (gperkes@st.nepean.uws.edu.au) =-=-=-=-=-=-=-=-=-=-=
/     \    Associate Lecturer           | PO Box 10      | Ph:  61 47 360437 
\_.--_/ <- Department of Computing      | Kingswood 2747 | Fax: 61 47 360770 
     v     Uni. of West. Sydney, Nepean | NSW, AUSTRALIA |

