HP3000-L Archives

May 1995, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bruce Toback <[log in to unmask]>
Reply To:
Bruce Toback <[log in to unmask]>
Date:
Mon, 1 May 1995 09:07:11 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
>I think that was me! We had a few rather large procedures that we
>wanted to implement as independent XLs for NM programs, with switch
>stubs for CM programs, but since the procedures implemented as
>independent XLs were calling procedures in other XLs, the switch
>stubs wouldn't work.
 
I'm not sure why this wouldn't work.
I've done this to implement XCMD-type (DLL-type, for Denys) extensions
so that a system I wrote for a client can be extended without modifying
the original source code. The user specifies the name of the library
at run time; the main system calls HPGETPROCPLABEL to load the procedure
and get its address.
 
You need to be writing in a language that
permits calls through procedure pointers; if you're working in COBOL
or another language that lacks the facility, you can write small
stubs in Pascal or C that will call a routine from an arbitrary XL
specified at run-time.
 
-- Bruce Toback
OPT, Inc.
[log in to unmask]

ATOM RSS1 RSS2