Subject: Eliminating underscores from assemby code
To: None <port-pmax@NetBSD.ORG>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: port-pmax
Date: 12/29/1994 13:11:48
Ted Lemon writes:
>You're losing with DEC as because Ultrix doesn't put underscores in
>front of C extern names, but BSD does.
> Working
>around the former requires modifying every C-visible external
>reference or definition, which is a pain in the butt.
No, it doesn't. Unless I'm stupidly misinterpreting what Marc
is trying to do.
Just compile the assembly code with NO_UNDERSCORES defined using
Ultrix as, and _C_LABEL() should ``do the right thing'' for
compiling with the MipsCo toolset shipped with Ultrix. If it doesn't,
then _C_LABEL() needs to be applied in more places. Just be sure to
use an ECOFF toolset, or the a.out toolset, consistently, define
NO_UNDERSCORES approppriately, and everything __should__ be fine.
Adam Glass' instructons in the BUILD file are grossly out of date;
they date back to before I'd hacked on the pmax port to get it
bootstrapped, and submitted a slew changes to the previous port
maintainer.
I thought I'd sent a message to Ted about the problems in pmax/cons.c
and machdep.c already. I vouch for Marc's report of the problem; but
cons.c needs to have its "fp" *argument* removed, too. Simply
reverting to the previous RCS/CVS revision is the right thing to do.
microtime() should indeed be defined to return ``void''.
--Jonathan