[Info-vax] VMS process communication

bill bill.gunshannon at gmail.com
Sat Mar 25 14:04:21 EDT 2023


On 3/25/2023 1:30 PM, Dave Froble wrote:
> On 3/25/2023 1:17 PM, bill wrote:
>> On 3/25/2023 1:09 PM, Arne Vajhøj wrote:
>>>
>>>
>>> $ type hw.mar
>>>          .title  hw
>>>          .psect  $CODE quad,pic,con,lcl,shr,exe,nowrt
>>> hw:     .asciz  "Hello world!"
>>           ^^^^^^
>>
>>
>>>          .entry  gethw,^m<>
>>>          movab   hw,r0
>>>          ret
>>>          .end
>>> $ macro hw
>>>
>>> hw:     .asciz  "Hello world!"
>>> ^
>>> %AMAC-E-DATINCODE, data in code stream
>>> at line number 3 in file DISK2:[ARNE]hw.mar;1
>>>
>>> Of course they can do:
>>>
>>> $ type hw2.mar
>>>          .title  hw2
>>>          .psect  $PDATA quad,pic,con,lcl,shr,noexe,nowrt
>>> hw:     .asciz  "Hello world!"
>>           ^^^^^^
>>
>>
>>>          .psect  $CODE quad,pic,con,lcl,shr,exe,nowrt
>>>          .entry  gethw,^m<>
>>>          movab   hw,r0
>>>          ret
>>>          .end
>>
>> I thought null terminated strings was a C thing and a bad idea?  :-)
>>
>> bill
>>
> 
> There was ASCIZ before there was C.  But still not advisable.
> 

I knew there was.  I just find it funny that everyone holds that
idea up as the very worst thing in C and yet, as you said, it was
the industry standard long before C came around.  Had C done it
differently I am sure people would have bitched about abandoning
the current standard.

bill




More information about the Info-vax mailing list