class RiSC16::Object
- RiSC16::Object
- Reference
- Object
Overview
Represent a relocatable object.
It can be linked into other objects or into a binary. See RiSC16::Assembler::Linker
.
Defined in:
assembler/object.crConstant Summary
-
ENDIAN =
IO::ByteFormat::BigEndian
Constructors
Class Method Summary
-
.from_io(io, name = nil, endian = ENDIAN)
Build an object from given io.
Instance Method Summary
-
#has_start?
return true is this object define a start symbol in a section.
-
#merged : Bool
Indicate if the object is ready for linking or not.
-
#merged=(merged : Bool)
Indicate if the object is ready for linking or not.
-
#name : String | Nil
Optional name used to indicate the origin source of an object file, for helping humans.
-
#name=(name : String | Nil)
Optional name used to indicate the origin source of an object file, for helping humans.
-
#sections : Array(Section)
The array of sections, that is, continuous piece of data, declaring and referencing symbols.
-
#sections=(sections : Array(Section))
The array of sections, that is, continuous piece of data, declaring and referencing symbols.
-
#to_io(io, endian = ENDIAN)
Serialize this object to the given io.
Constructor Detail
Class Method Detail
Instance Method Detail
return true is this object define a start symbol in a section. This is useful to check if this is supposed to be executable.
Indicate if the object is ready for linking or not. An object file incated as merged should: have all the sections it contains have a fixed, relative to 0, absolute address.
Indicate if the object is ready for linking or not. An object file incated as merged should: have all the sections it contains have a fixed, relative to 0, absolute address.
Optional name used to indicate the origin source of an object file, for helping humans.
Optional name used to indicate the origin source of an object file, for helping humans.
The array of sections, that is, continuous piece of data, declaring and referencing symbols.
The array of sections, that is, continuous piece of data, declaring and referencing symbols.