Class: Rubycc::IR::GlobalInit
- Inherits:
-
Data
- Object
- Data
- Rubycc::IR::GlobalInit
- 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
-
#bytes ⇒ Object
readonly
Returns the value of attribute bytes.
-
#relocations ⇒ Object
readonly
Returns the value of attribute relocations.
Instance Attribute Details
#bytes ⇒ Object (readonly)
Returns the value of attribute bytes
374 375 376 |
# File 'lib/rubycc/ir/ir.rb', line 374 def bytes @bytes end |
#relocations ⇒ Object (readonly)
Returns the value of attribute relocations
374 375 376 |
# File 'lib/rubycc/ir/ir.rb', line 374 def relocations @relocations end |