home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / transput / 1367 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.7 KB  |  62 lines

  1. Newsgroups: comp.sys.transputer
  2. Path: sparky!uunet!uchdcc!inti!maurro
  3. From: maurro@inf.utfsm.cl (Mauricio Gomez Calderon)
  4. Subject: On-chip Ram: Helios, D7205
  5. Sender: usenet@dcc.uchile.cl (Network News)
  6. Message-ID: <1993Jan07.200247.37029@dcc.uchile.cl>
  7. Date: Thu, 07 Jan 1993 20:02:47 GMT
  8. Nntp-Posting-Host: inti.inf.utfsm.cl
  9. Organization: Informatica UTFSM
  10. X-Newsreader: TIN [version 1.1 PL8]
  11. Lines: 50
  12.  
  13. Hi Again...
  14.  
  15.    I was testing the on-chip RAM for a single Transputer:
  16.  
  17.    
  18.    In Helios, i tried to accelerate a small test routine, using the
  19.    fast on-chip Ram memory. The code is as follows:
  20.  
  21.    void cycle(int iterations) {
  22.  
  23.         int i;
  24.     for(i=0; i<iterations; i++) {
  25.         /* nothing! */
  26.         }
  27.  
  28.    }
  29.  
  30.    In a normal situation, this takes 14 sec for 10,000,000 iterations.
  31.    Using on-chip Ram, this takes 6 sec for      10,000,000 iterations.
  32.  
  33.  
  34.    But in D7205 Occam 2 Toolset, if i try to do the same...
  35.  
  36.    VAL INT iterations IS 10000000:
  37.    SEQ
  38.      clock ? time1
  39.      i := 0
  40.      WHILE ( i < iterations )
  41.        SEQ
  42.          -- nothing!
  43.      i := i + 1
  44.      clock ? time2
  45.  
  46.  
  47.    In a normal situation, this takes 10 sec for 10,000,000 iterations.
  48.    Using order.code := -1 in the .pgm this takes 14 sec for the same iterations.
  49.  
  50.    I suppose that this occurs because the occonf try to optimize by default
  51.    the use of the on-chip RAM for small routines...
  52.  
  53.    But what about the best times? 6 sec in Helios and 10 sec in D7205 for the
  54.    almost 'same' application... Furthermore, the occam process is the only
  55.    process in the transputer...
  56.  
  57.    Why this difference?         Thanks in Advance...
  58.  
  59.  
  60.                                                                        Maurro
  61.                                       
  62.