From: tseng@k2.Stanford.EDU (Chau-Wen Tseng)
Date: Fri, 10 Jun 1994 17:32:28 -0700
Subject: Re: Question.
Message-Id: <9406110032.AA04811@k2.Stanford.EDU>
Hi Minoru,
The message "Counter: id 68 out of range" is due to an error in
runtime/runtime.c at line 512, where the parameter 0 is missing
for the call. The correct code is "p4_counter_init(myid, 0);".
To fix the error, you can edit the file directly or place the
following patch file (runtime.c.patch) in the same directory as
runtime.c and type "patch < runtime.c.patch".
Sorry for the inconvenience,
Chau-Wen
---------------------- patch file "runtime.c.patch" ---------------------
-----------------------------cut here-------------------------------------
*** runtime.c Fri Jun 10 17:19:57 1994
--- runtime.c.new Fri Jun 10 17:15:31 1994
***************
*** 510,514 ****
PROCASSIGN(((myid + _proc_start) % _maxproc))
! p4_counter_init(myid);
if (!myid)
--- 510,514 ----
PROCASSIGN(((myid + _proc_start) % _maxproc))
! p4_counter_init(myid, 0);
if (!myid)
From: Chris Wilson <cwilson@CS.Stanford.EDU>
Date: Fri, 10 Jun 94 2:04:37 PDT
Subject: Re: Question.
Message-Id: <CMM.0.90.4.771239077.cwilson@Xenon.Stanford.EDU>
Minoru Nakanishi <nakanish@chaph.usc.edu> writes:
------------------------------------------------
> 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
[...]
> 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.
This is a warning from your own cpp program. As you know, SUIF
doesn't come with it's own cpp; you have to provide your own.
Unfortunately, the options accepted by cpp are not very standardized.
The ``-nostdinc'' option works with the gnu cpp, which is what most
SUIF users probably use. It simply means that when looking for
include files, cpp should not look in the standard system include
directories -- it should only look in the directories explicitly
specified with ``-I'' options. The scc program wants to have complete
control over which directories are searched for included files.
This is essential for cross compiling: it would be wrong to use the
compiling machine's system headers. Otherwise, there is probably no
harm done if your cpp ignores this option. If you find it's a
problem, you could switch to the gnu cpp, but chances are you'll just
want to ignore the warning.
--Chris