Subject: | |
From: | |
Reply To: | |
Date: | Wed, 25 Oct 1995 08:23:38 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
>Does anyone know how to get a segment moved from a USL file into an XL file?
As someone else pointed out, USLs contain only compatibility mode code, and
XLs contain only native-mode code. You'll need to do one of two things:
1. Rewrite the USL routine in a language for which you have an NM compiler, or
2. Write a switch stub, which is a small piece of native mode code that can
call the emulator and run compatibility mode code. You'll also need to put
the code that's in the USL into an SL using SEGMENTER. Switch stubs need
to be written in Pascal or C, since those are the only languages on the
HP3000 that support pointers. As long as you have a Pascal compiler (or
have access to one) and know the calling sequence of the routines that
you have in your USL, you can use SWAT -- the Switch Assist Tool -- to
write the code for you. SWAT is in PUB.SYS and is a simple VPlus
application. It's documented in the Switch Programming Manual.
If the routine that's in your USL is written in COBOL, it's probably easiest
just to compile the source with a native mode compiler. Switch stubs are a
bit harder to write for COBOL programs, and some COBOL subprograms can't be
accessed that way at all.
-- Bruce
---------------------------------------------------------------------------
Bruce Toback Tel: (602) 996-8601| This space for rent. Contact the
OPT, Inc. (800) 858-4507| OPT media sales department for details.
11801 N. Tatum Blvd. Ste. 142 |
Phoenix AZ 85028 |
[log in to unmask] |
|
|
|