Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: mcohen@charming.nrtc.northrop.com (Martin Cohen)
Subject: Re: FORTRAN arg lists on AXP
Date: Mon, 6 Mar 1995 23:57:25 GMT	[thread overview]
Message-ID: <D51MJq.132@gremlin.nrtc.northrop.com> (raw)
In-Reply-To: 3j2q8v$5hc@arc.electriciti.com

In article <3j2q8v$5hc@arc.electriciti.com> jjo@triton.com (Jay Olson) writes:
>I am converting some VAX MACRO code to FORTRAN as part of an AXP conversion
>effort. Some of the entry points in this code are supposed to accept variable length
>argument lists. Is there any way in DEC FORTRAN for OpenVMS/AXP (or any other
>language) to determine the number of arguments a subroutine has been passed?
>
>Note that this is the case where the number of commas may vary (e.g CALL XXX(A1,A2)
>and CALL XXX(A1) are both supposed to be allowed). I can use %LOC to determine if an
>argument has been left out, as in CALL XXX(A1,).
>
>	- Jay Olson
>	Triton Software Group Ltd.

I am somewhat partial to Fortran myself, but it seems to me that
macro code could be more easily converted to C, since C is,
anomg other things, a high-level assembly language. One of
the things C supports is varying number of arguments (see varargs).
Fortran does not support this.

Good luck - I hope the choice of Fortran was technical, not managerial!
-- 
Marty Cohen (mcohen@nrtc.northrop.com) - Not the guy in Philly
  This is my opinion and is probably not Northrop Grumman's!
          Use this material of your own free will


      parent reply	other threads:[~1995-03-06 23:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-01 21:51 FORTRAN arg lists on AXP Jay Olson
1995-03-03 14:49 ` Steve Lionel
1995-03-06 20:36 ` shumaker
1995-03-06 23:57 ` Martin Cohen [this message]
read-only archive

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