Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Porting a macro-64 source from VMS to NT
@ 1998-10-25  4:00 Alan Dartnell
  1998-10-25  4:00 ` John Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alan Dartnell @ 1998-10-25  4:00 UTC (permalink / raw)


I have been asked to look at the possibility of porting a large MACRO-64

application from VMS to an Alpha-NT system.

The application was originally written in MACRO-64 for performance
reasons,
the performance of a C version was measured as less than half as fast
as the MACRO-64 version and unable to provide the required performance.

It never looked like being an easy job, but on investigating the asaxp
assembler it looks to be much harder than was originally assumed.

There is no VMS system specific code other than the $Routine, $Return,
$Call macros, and these are readily replaced. All register are refered
to using symbolic names so there are no problems in accommodating the
different register usages of VMS and NT.

However it does make very heavy use of the MACRO-64's macro facilities
and of its string and integer symbol manipulation capabilities. These
seem to be almost nonexistent in the asaxp assembler which appears to
use the C preprocessor for these purposes, and this is simply not
capable
of performing the required macro and string processing.

Does any one know of any macro processor for alpha NT ? If not its looks

like the direct porting option will have to be abandoned.

We are also investigating other options, such as porting the output
produced by MACRO-64 using the /PREPROCESS_ONLY qualifier or using
a high level language to perform the macro task and have it generate
a simple assembler program.








^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Porting a macro-64 source from VMS to NT
  1998-10-25  4:00 Porting a macro-64 source from VMS to NT Alan Dartnell
@ 1998-10-25  4:00 ` John Wilson
  1998-10-27  5:00 ` Tony Scandora 630-252-7541
  1998-10-27  5:00 ` Peter da Silva
  2 siblings, 0 replies; 4+ messages in thread
From: John Wilson @ 1998-10-25  4:00 UTC (permalink / raw)


In article <36333215.6C2397A9@esoc.esa.de>,
Alan Dartnell  <Adartnel@esoc.esa.de> wrote:
>We are also investigating other options, such as porting the output
>produced by MACRO-64 using the /PREPROCESS_ONLY qualifier or using
>a high level language to perform the macro task and have it generate
>a simple assembler program.

That sounds like a good idea.  I don't know about asaxp in particular,
but most newer assemblers are just toys and their macro facility, if any,
isn't really worth using.  Also they tend to use the screwball UNIX method
of doing local labels, where cutting and pasting yields code that still
assembles OK but doesn't work at all.  Preprocessing it into bald mnemonics
with made-up symbols seems like a good idea, the tricky thing is that assembly
language preprocessing often requires access to the real symbol table (not
some flimsy preprocessor symbol table like in C) so it's not guaranteed that
you can totally divorce the macro substitution and actual assembly layers.

John Wilson
D Bit



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Porting a macro-64 source from VMS to NT
  1998-10-25  4:00 Porting a macro-64 source from VMS to NT Alan Dartnell
  1998-10-25  4:00 ` John Wilson
  1998-10-27  5:00 ` Tony Scandora 630-252-7541
@ 1998-10-27  5:00 ` Peter da Silva
  2 siblings, 0 replies; 4+ messages in thread
From: Peter da Silva @ 1998-10-27  5:00 UTC (permalink / raw)


In article <36333215.6C2397A9@esoc.esa.de>,
Alan Dartnell  <Adartnel@esoc.esa.de> wrote:
>However it does make very heavy use of the MACRO-64's macro facilities
>and of its string and integer symbol manipulation capabilities. These
>seem to be almost nonexistent in the asaxp assembler which appears to
>use the C preprocessor for these purposes, and this is simply not
>capable
>of performing the required macro and string processing.

If you were porting to Digital UNIX, I suspect you could convert all
the MAC macros to UNIX M4 macros. I've done that with other assembly
conversions, including MACRO-11 ports from RSX-11 to V7 UNIX.

While I would naturally recommend doing a port to Digital UNIX, since by
any measure except MarketStone it's superior to NT, honor compels me to
admit that there are M4 ports available for NT. Check out CYGWIN32 from
Cygnus (www.cygnus.com) which is available free of charge with source.

Mortice Kern Systems has no doubt got a commercial version.

-- 
In hoc signo hack, Peter da Silva <peter@baileynm.com>
 `-_-'   "Heb jij vandaag je wolf al geaaid?"
  'U`
         "Tell init(8) to lock-n-load, we're goin' zombie slaying!"



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Porting a macro-64 source from VMS to NT
  1998-10-25  4:00 Porting a macro-64 source from VMS to NT Alan Dartnell
  1998-10-25  4:00 ` John Wilson
@ 1998-10-27  5:00 ` Tony Scandora 630-252-7541
  1998-10-27  5:00 ` Peter da Silva
  2 siblings, 0 replies; 4+ messages in thread
From: Tony Scandora 630-252-7541 @ 1998-10-27  5:00 UTC (permalink / raw)


In article <36333215.6C2397A9@esoc.esa.de>, Alan Dartnell <Adartnel@esoc.esa.de> writes:
>I have been asked to look at the possibility of porting a large MACRO-64
>
>application from VMS to an Alpha-NT system.
>...
>Does any one know of any macro processor for alpha NT ? If not its looks

M4 is a common, well documented macro processor that started out on
UNIX, but has been ported to other platforms, including NT.  It is part
of Cygnus' Cygwin32, which is a free port of much of the GNU software,
including the bash shell and M4.  Go to www.cygnus.com and hit the
Cygwin32 button.  For documentation on M4, go to www.gnu.org and get
the original manual.

Tony Scandora, Argonne National Lab, 630-252-7541
scandora@cmt.anl.gov



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-10-27  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-10-25  4:00 Porting a macro-64 source from VMS to NT Alan Dartnell
1998-10-25  4:00 ` John Wilson
1998-10-27  5:00 ` Tony Scandora 630-252-7541
1998-10-27  5:00 ` Peter da Silva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox