🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51492

Compiling VAX C code with GCC - missing MPY_QUAD, ADD_QUAD. ideas?

#51492
From: Kurt Klingbeil
Date: Tue, 11 May 1993 18:36
24 lines
1706 bytes
I'm attempting a GCC-VMS port of code which seems to be targeted to Vax C.

If during the link phase the following references are undefined, 
where are they most likely to be found... ?

ADD_QUAD, MPY_QUAD, CVTUNIX2VMS, CVTVMS2UNIX

The interesting bit about CvtUnix2VMS and its converse was that
the #ifdef VMS's EXCLUDED the compilation of these functions ,
implying that they resided in libraries somewhere...

The Quadword operations are used in conjunction with utime() to
do unix time conversions.  I expect that VAX C just #defines
xxx_QUAD to some other math$blah$blah references, but so far,
snooping the libraries hasn't turned up any obvious hits.
(I suppose I should mention that we don't have VAX C or any of
it's attendant documentation; only GCC)
Also, why would a particular piece of code use _toupper()/_tolower
(i.e. underscores explicitly included in the source) when the
standard functions are usually under_score_less...  I ended up just
#define _toupper(x) toupper(x)...

thx, kk
Technical Details
Message-ID: <kurtk.737145387@ee.ualberta.ca>
Path: arc1-ca.pugleaf.net!gmd.de!ira.uka.de!howland.reston.ans.net!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!ee.ualberta.ca!kurtk

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,8458f9e246a05cbd,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-05-11 15:47:29 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!ira.uka.de!howland.reston.ans.net!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!ee.ualberta.ca!kurtk
From: kurtk@ee.ualberta.ca (Kurt Klingbeil)
Subject: Compiling VAX C code with GCC - missing MPY_QUAD, ADD_QUAD. ideas?
Message-ID: <kurtk.737145387@ee.ualberta.ca>
Sender: news@kakwa.ucs.ualberta.ca
Nntp-Posting-Host: bode.ee.ualberta.ca
Organization: University Of Alberta, Edmonton Canada
Date: Tue, 11 May 1993 18:36:27 GMT
Lines: 24