🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: vmsnet.internals
Article #358

Shared images, some differences on ALPHA

#358
From: George J. Carrette
Date: Tue, 06 Oct 1992 09:17
35 lines
1655 bytes
By the way, LINK/SHARE works a bit differently on ALPHA. Indications I've
gotten (e.g. months ago from OSF/MOTIF source codes) are that there is
no longer any "globalref" or "globaldef" stuff, for example. e.g.

     #if defined(VMS) && !define(ALPHA)
     globaldef ...
     #else
     extern ...
     #endif

was seen.

Transfer vectors work differently too. 

My biggest gripe about sharable images has always been that if you wanted
to share data psects in an upward-compatible way you had to be
DARNED CAREFUL to collect things properly in your linking.

In fact, if you were really careful you needed to write a program
that would parse the linker /MAP/FULL file and check to be sure that
your transfer vector was the same size at the front, and your data
psects were in all the same places after that, etc.

And DIGITAL never provided explicit examples to your average C programmer
on how to make "extern" variables sharable in a GSMATCH upward image.

On the other hand, if you asked hotline support an explicit question like:
"how do I make something work in my /SHARE image like stdout works
in the VAXCRTL.EXE" you would get the info you need.

-gjc

p.s. Of course, anybody who thinks he has a gripe with any inconvenience
     of the VMS linker should try looking at how you have to do things
     under SUN-OS with sharable images!
Technical Details
Message-ID: <3026@mitech.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!mitech!gjc

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mitech!gjc
From: gjc@mitech.com (George J. Carrette)
Newsgroups: vmsnet.internals
Subject: Shared images, some differences on ALPHA
Message-ID: <3026@mitech.com>
Date: 6 Oct 92 09:17:23 GMT
Organization: Mitech Corporation, Concord MA
Lines: 37