Code emission¶
Code is emitted using the outputstream class. The assembler and compiler use this class to emit instructions to. The stream can output to object file or to a logger.
-
class
ppci.binutils.outstream.
OutputStream
¶ Interface to generate code with.
Contains the emit function to output instruction to the stream.
-
do_emit
(item)¶ Actual emit implementation
-
emit
(item)¶ Encode instruction and add symbol and relocation information
-
emit_all
(items)¶ Emit all items from an iterable
-
select_section
(name)¶ Switch output to certain section
-