[Info-vax] The Road to V9.0

Arne Vajhøj arne at vajhoej.dk
Mon Oct 14 20:25:09 EDT 2019


On 10/14/2019 8:06 PM, Dave Froble wrote:
> On 10/14/2019 1:42 PM, John Reagan wrote:
>> LLVM's model is that "variables live in sections", "variables have 
>> initial values".  GEM's model is "data lives in PSECTs" and "variables 
>> are associated with offsets into PSECTs".
>>
>> When you get to ELF, that is exactly the model.  Data lives in ELF 
>> sections.  The ELF symbol table defines names (and sizes and 'data vs 
>> procedure') that point to ELF sections plus an offset.  The same ELF 
>> on OpenVMS and on Linux.  No difference.

> What is the difference between a PSECT and a SECTION?  Isn't it just 
> different names for the same (or similar) thing?
> 
> And yes, you answered my original question.  Mostly it's the GEM to LLVM 
> mapping.
> 
> My experience with Basic is that variables have initial values, usually 
> zero and null string and such.

Variables will always have an initial value. Question is whether the
value is deterministic/defined.

Arne





More information about the Info-vax mailing list