#include <AsmCode.h>
|
| AsmCode (const std::string &filename, const std::string &varname) |
|
void | dump (std::ostream &) const |
|
Definition at line 26 of file AsmCode.h.
◆ AsmCode()
enco::AsmCode::AsmCode |
( |
const std::string & |
filename, |
|
|
const std::string & |
varname |
|
) |
| |
|
inline |
Definition at line 29 of file AsmCode.h.
30 : _filename{filename}, _varname{varname}
31 {
32
33 }
◆ dump()
void enco::AsmCode::dump |
( |
std::ostream & |
os | ) |
const |
Definition at line 22 of file AsmCode.cpp.
23{
24 os << ".section .rodata" << std::endl;
25 os << ".global " << _varname << std::endl;
26
27 os << ".type " << _varname << ", STT_OBJECT" << std::endl;
28 os << ".align " << 4 << std::endl;
29 os << _varname << ":" << std::endl;
30 os << ".incbin " << '"' << _filename << '"' << std::endl;
31}
The documentation for this class was generated from the following files: