> What about Assembler ORG to C "union"?
EDCDSECT does the world's ugliest job on assembler ORG and things like FL0 but
it ends up technically correct. Ugly as sin, but the layouts are right.
struct tiot {
unsigned char tiocnjob[8];
/* - JOB NAME */
struct {
struct {
unsigned char _tiocpstn[8];
/* - 8-BYTE PROC STEP NAME FOR PROCS @P1A */
} tiocstpn;
unsigned char _tiocjstn[8];
/* - 8-BYTE JOBSTEP NAME FOR PROCS @P1A */
} tiocstep;
Charles
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Paul Gilmartin
Sent: Tuesday, February 25, 2020 9:47 AM
To: [email protected]
Subject: Re: Convert a Metal C control block mapping to Assembler DSECT ?
On Tue, 25 Feb 2020 09:26:45 -0800, Charles Mills wrote:
>
>Continuing the assembler analogy, myStruct * foo is roughly equivalent to
>assembler L Rn,FOO/USING MYSTRUCT,Rn .
>
Pascal's WITH statement allowed brief member references without
the requirement for unique names.
>Assembler is a terrible starting point, except considering what the problem
>was. The problem was "we have a bunch of new C development and lots of tables
>already defined in assembler." ....
>
Like, "What's the best way from London to San Francisco if you're
already in New York?"
(Old punchline: "If'n I wuz you I wouldn't of started from here!")
What about Assembler ORG to C "union"?
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN