From: Minoru Nakanishi <nakanish@chaph.usc.edu>
Date: Thu, 9 Jun 94 17:45:42 PDT
Subject: Question.
Message-Id: <CMM.0.90.2.771209142.nakanish@aludra.usc.edu>


Dear Sir,

Now I am trying to execute the executable file compiled by SUIF.

My test program is following;
#include <stdio.h>
#define MAT_SIZE  10

main()
{
int     i, j, k;
float  a[MAT_SIZE][MAT_SIZE], b[MAT_SIZE][MAT_SIZE];
float  c[MAT_SIZE][MAT_SIZE];

printf("start\n");

        for( i=0; i<MAT_SIZE ; i++ )
           for( j=0; j<MAT_SIZE ; j++ )
              {
              a[i][j] = (float)(i+j);
              b[i][j] = (float)(i-j);
              c[i][j] = 0.0;
              }

        for( i=0; i<MAT_SIZE ; i++ )
           for( j=0; j<MAT_SIZE ; j++ )
              for( k=0; k<MAT_SIZE ; k++ )
                 c[i][j] = c[i][j] + a[i][k]*b[k][j];

        for( i=0; i<MAT_SIZE ; i++ )
           {
           for( j=0; j<MAT_SIZE ; j++ )
              printf(" %+4.2f ", c[i][j]);
           printf("\n");
           }

printf("finished\n");
}

At first I compiled it (file name is multiply.c) as following.
----------------- 
scc -V -parallel -s2c -.out.c multiply.c
CPP: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/cpp -D__SCC__ -DLANGUAGE_C -Dunix -Dsun -Dsparc   -I/home/fumarole/nakanish/SUIF/suif-1.0/SPARC/include -nostdinc -I/usr/include multiply.c /tmp/scc08563_0.i
0: unknown flag -nostdinc
SNOOT: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/snoot   /tmp/scc08563_0.i /tmp/scc08563_1.snt
PORKY_DEFAULTS: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/porky -defaults  /tmp/scc08563_1.snt /tmp/scc08563_2.spd
P_CONST0: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/porky -const-prop   /tmp/scc08563_2.spd /tmp/scc08563_3.0
PORKY_SCALARIZE: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/porky   -scalarize /tmp/scc08563_3.0 /tmp/scc08563_4.1
PORKY_FORWARD_PROP: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/porky   -forward-prop /tmp/scc08563_4.1 /tmp/scc08563_5.spf
P_CONST1: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/porky -const-prop   /tmp/scc08563_5.spf /tmp/scc08563_6.2
NORMALIZE: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/predep -normalize   /tmp/scc08563_6.2 /tmp/scc08563_7.3
P_IVAR1: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/porky -ivar   /tmp/scc08563_7.3 /tmp/scc08563_8.4
P_IVAR2: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/porky -ivar   /tmp/scc08563_8.4 /tmp/scc08563_9.5
P_IVAR3: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/porky -ivar   /tmp/scc08563_9.5 /tmp/scc08563_10.6
P_KNOW_BOUNDS: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/porky -know-bounds   /tmp/scc08563_10.6 /tmp/scc08563_11.7
P_CONST2: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/porky -const-prop   /tmp/scc08563_11.7 /tmp/scc08563_12.8
P_FOLD: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/porky -fold   /tmp/scc08563_12.8 /tmp/scc08563_13.sf1
SCE0: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/moo -Psce  /tmp/scc08563_13.sf1 /tmp/scc08563_14.sce
REDUCTIONS: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/reduction   /tmp/scc08563_14.sce /tmp/scc08563_15.9
EMPTY_FORS: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/porky -no-empty-fors   /tmp/scc08563_15.9 /tmp/scc08563_16.10
PREDEP: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/predep -presc   /tmp/scc08563_16.10 /tmp/scc08563_17.11
SKWEEL: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/skweel -P -T -i   /tmp/scc08563_17.11 /tmp/scc08563_18.skw
PGEN: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/pgen   /tmp/scc08563_18.skw /tmp/scc08563_19.sfp
S2C: /home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin/s2c   /tmp/scc08563_19.sfp multiply.out.c
gcc -o multiply multiply.out.c \
/home/fumarole/nakanish/SUIF/suif-1.0/SPARC/lib/libruntime_seq.a -lm
----------------------------------------

I set these environmental parameter also.

SUIFHOME=/home/fumarole/nakanish/SUIF/suif-1.0
SUIFPATH=/home/fumarole/nakanish/SUIF/suif-1.0/SPARC/bin

PL_NUM_THREADS=4
PL_PROC_START=4
PL_MAXPROC=1

The executable file "multiply" works, however it generates following message
only.
Counter: id 68 out of range 

Please tell me what is wrong.

My machine is a sparc station 10.

I also can not find the reason why following message appears at
compiling by scc.
	0: unknown flag -nostdinc
If you know this reason, please teach me it.

Bye.

    _/    _/ _/_/_/_/ _/_/_/_/ NAKANISHI, MINORU
   _/    _/ _/       _/ Computer Science Department
  _/    _/ _/_/_/_/ _/ University of Southern California
 _/    _/       _/ _/ Los Angeles, CA
_/_/_/_/ _/_/_/_/ _/_/_/_/ E-mail: nakanish@usc.edu