Article View: comp.sys.transputer
Article #257Mixed T2 & T4 storage allocation problem
From: ROSS
Date: Tue, 12 Sep 1989 10:34
Date: Tue, 12 Sep 1989 10:34
29 lines
1825 bytes
1825 bytes
QUOTE from Inmos technical Note 24, Exploring multiple transputer arrays, page 18 section 4 : " The memory requirement of programs is determined by the compiler as the number of words needed. However, running a program on a 16-bit transputer may require more words of storage than if the same program was run on a 32-bit transputer. For example, [4]BYTE array requires 1 word of storage on a T4, but 2 words on a T2. Since, as is noted in (1) above, the program must be compiled for a 32-bit transputer, the allocation of storage must be forced to be suitable for 16-bit transputers by declaring arrays as follows: [ArraySize][2]BYTE dummyArray: [ArraySize]BYTE array IS dummyArray[0]: The same applies for boolean and INT16 arrays. " I can see that storage requirements are different on different word size machines but I don't understand the example shown in the quote. What is actually happening and why does this work ? They say the same applies to boolean and INT16 arrays but don't mention INT32, why not ? Also what about non vector storage, surely you need to take special care with those as well? Can anyone elighten me on this matter as I am developing an application which must explore and run on a mixed network of T2's and T4's (with no external memory) and am not sure exactly how to continue. yours, Philip Ross
Technical Details
Message-ID:
<00000230_0033F1A8.0092AAD1C103E320$1_3@UK.AC.ABERDEEN.BIO-MEDICAL-PHYSICS>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!bio-medical-physics.aberdeen.ac.uk!ROSSShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!bio-medical-physics.aberdeen.ac.uk!ROSS From: ROSS@bio-medical-physics.aberdeen.ac.uk Newsgroups: comp.sys.transputer Subject: Mixed T2 & T4 storage allocation problem Message-ID: <00000230_0033F1A8.0092AAD1C103E320$1_3@UK.AC.ABERDEEN.BIO-MEDICAL-PHYSICS> Date: 12 Sep 89 10:34:12 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 29