#include <program.h>
Inheritance diagram for VM::ProgramStorage::Function:
Public Member Functions | |
Function (SymRef _symref, const SCLocation &_loc, PrgAdr prealloc_size=0) | |
Create empty function program storage. | |
~Function () | |
Destroy and free function program storage. | |
Public Attributes | |
SCLocation | loc |
Location in source code. | |
Private Member Functions | |
Function (const Function &) | |
Do not use. | |
void | operator= (const Function &) |
Do not use. |
The function program storage is organized in a byte-wise manner and instructions differ in size. All instructions are of even size (i.e. at least 2 bytes) and the first 2 bytes of each instruction is the instruction ID.
The function program storage internally uses the machine order (LSB/MSB first) and the machine representation for floating point numbers. For distribution over network, this must first be converted.
This class is NOT C++-safe.
Definition at line 69 of file program.h.
|
Do not use.
|
|
Create empty function program storage.
Definition at line 25 of file program.cc. References VM::PrgAdr, and VM::SymRef. |
|
Destroy and free function program storage.
Definition at line 34 of file program.cc. |
|
Do not use.
|
|
Location in source code.
Definition at line 84 of file program.h. Referenced by VM::VMLinker::_GenerateSymbolProvideMap(), VM::VMLinker::_LinkFunction(), VM::AssemblerFile_Plaintext::_ParseProgram_FinishFunction(), VM::AssemblerFile_Plaintext::_ParseProgram_Label(), VM::AssemblerFile_Plaintext::_WriteFunctionProgram(), and VM::AssemblerFile::ResolveIDsNamespaceLocal(). |
|
Looked-up symref. Be careful: the special .init and .start functions get *se pointer set initially because they do not have a SymRef. Definition at line 80 of file program.h. Referenced by VM::VMLinker::_CreateInitFunction(), VM::VMLinker::_GenerateSymbolProvideMap(), VM::VMLinker::_LinkFunction(), VM::AssemblerFile_Plaintext::_WriteFunctionProgram(), and VM::AssemblerFile::ResolveIDsNamespaceLocal(). |
|
Symbol number of the function symbol of this function.
Definition at line 76 of file program.h. Referenced by VM::AssemblerFile_Plaintext::_ParseProgram_FinishFunction(), and VM::AssemblerFile::ResolveIDsNamespaceLocal(). |