Class: Rubycc::IR::GlobalInit

Inherits:
Data
  • Object
show all
Defined in:
lib/rubycc/ir/ir.rb

Overview

The materialized initializer of a .data global: bytes is its full size-byte image (a scalar packed little-endian, an aggregate laid out member/element by member/element, a pointer slot left as eight zeros for a relocation to fill), and relocations is the list of GlobalReloc that patch the pointer slots. An all-zero image with no relocations is still a GlobalInit (an explicitly zero-initialized global), distinct from a nil init that reserves .bss space.

Instance Attribute Summary collapse

Instance Attribute Details

#bytesObject (readonly)

Returns the value of attribute bytes

Returns:

  • (Object)

    the current value of bytes



374
375
376
# File 'lib/rubycc/ir/ir.rb', line 374

def bytes
  @bytes
end

#relocationsObject (readonly)

Returns the value of attribute relocations

Returns:

  • (Object)

    the current value of relocations



374
375
376
# File 'lib/rubycc/ir/ir.rb', line 374

def relocations
  @relocations
end