SD freeware for X86

Talk about commercial or opensource products that already exist for OpenVMS or may be available in the future.
Post Reply

Topic author
cdan
Newbie
Posts: 4
Joined: Thu Jan 26, 2023 10:51 am
Reputation: 0
Status: Offline

SD freeware for X86

Post by cdan » Mon Jul 10, 2023 5:33 am

I tried and failed to compile Joe Meadows's SD utility from https://www.digiater.nl/openvms/freeware/v80/sd/ on OpenVMS V9.2-1
Anyone here knows if SD was or will be ported to X86?


joukj
Master
Posts: 175
Joined: Thu Aug 27, 2020 5:50 am
Reputation: 0
Status: Offline

Re: SD freeware for X86

Post by joukj » Mon Jul 10, 2023 6:38 am

The macro does not compile (is not it)?

Have you ever tried "Switch".?
(see http://nchrem.tnw.tudelft.nl/openvms/so ... tml#SWITCH )
It works with a small patch on x86_64.

regards
Jouk

User avatar

martin
Valued Contributor
Posts: 73
Joined: Tue Mar 22, 2022 6:47 pm
Reputation: 0
Location: England
Status: Offline

Re: SD freeware for X86

Post by martin » Mon Jul 10, 2023 10:59 am

I've had a quick look at the macro. The first problem was that there were no .PSECT directives¹, and so both executable code and r/w storage were in the same .PSECT. The next problem is that in porting from VAX to Alpha (and one assumes onwards) the target of a JSB instruction needs to have a .JSB_ENTRY rather than being a simple address.²

Having got those two problems out of the way, all .ENTRYs that include a JSB need to have a homed arglist which I've attempted to do,³ but and still getting:

%XMAC-I-JSBHOME, arglist use in JSB entry PARSE_IT requires homed arglist in caller

Work continues! I'm having to do some serious brain-wracking back to the release of the first Alphas 30 years ago when we started porting VAX MACRO-32 to Alpha.

¹ I've used:

Code: Select all

.psect  rwdata,wrt,noexe,quad
.psect  code,exe,nowrt,long
²JSB entry:

Code: Select all

parse_it:  .jsb_entry
³For example: .entry parse_full,0 becomes

Code: Select all

 .call_entry      home_args=TRUE,max_args=14,label=parse_full
Martin
  • Retired System Manager: VMS/UNIX/UNICOS/Linux.
  • Started on a VAX 11/782 in 1984 with VMS 3.6.

User avatar

arne_v
Master
Posts: 347
Joined: Fri Apr 17, 2020 7:31 pm
Reputation: 0
Location: Rhode Island, USA
Status: Offline
Contact:

Re: SD freeware for X86

Post by arne_v » Mon Jul 10, 2023 8:14 pm

parse.mar is a smart wrapper for calling sys$parse.

I don't think there is any real good reason that it has to be in Macro-32.

So rewriting to C may make more sense.

In 2023.
Arne
arne@vajhoej.dk
VMS user since 1986


goathunter
Contributor
Posts: 15
Joined: Mon Jun 24, 2019 7:21 am
Reputation: 0
Status: Offline

Re: SD freeware for X86

Post by goathunter » Tue Jul 11, 2023 7:56 am

Mine doesn't work exactly the same way as Joe's, but my HGSD has been ported to X86_64. In fact, I just refreshed the binaries yesterday using the native C compiler.

HGSD from the Process Software Freeware Repository


Topic author
cdan
Newbie
Posts: 4
Joined: Thu Jan 26, 2023 10:51 am
Reputation: 0
Status: Offline

Re: SD freeware for X86

Post by cdan » Wed Jul 12, 2023 6:12 am

thanks all, I tested both switch and hgsd and both work fine on v9.2-1

Post Reply