I assembled:

*  test V constants
     EXTRN  XXX
XXX  DC     V(XXX+4)
     END

with Z390.  It assembled the 4 into the constant without any 
error or warning message.  Same with the EXTRN removed, or replaced
by an ENTRY statement.

A different question, is what does the linker do in this case?  
For A constants, the linker adds the value assembled into the constant (the 
offset).

-- glen

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of John Ehrman
Sent: Tuesday, August 25, 2015 10:32 AM
To: [email protected]
Subject: Re: IBM-MAIN Digest - 23 Aug 2015 to 24 Aug 2015 (#2015-236)

On 
>Sun, 23 Aug 2015 23:25:53 -0500
>Paul Gilmartin <[email protected]>
>asked regarding 8-byte V-cons

>>   EXTRN EXTERNAL
>>   DC    V(EXTERNAL+4) points at EXTERNAL
>>   DC    A(EXTERNAL+4) points 4 bytes past EXTERNAL

>Why isn't the former code reported as a syntax error?  (If not 
>assembled as coded.)

Has anyone tried assembling it?  8-)
John Ehrman

----------------------------------------------------------------------
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

Reply via email to