lestes::md::tasm::asm_generator_base Class Reference

Performs asm code generation of a translation unit. More...

#include <asm_generator_base.g.hh>

Inheritance diagram for lestes::md::tasm::asm_generator_base:

Inheritance graph
[legend]
List of all members.

Public Member Functions

::std::ostream & output_get () const
 The method output_get returns the value of the field asm_generator_base::output.
virtual void generate_tu_prologue () override
 Generates translation unit prologue.
virtual void generate_tu_body (ptr< vector< srp< ::lestes::backend_v2::structs::func_data > > > tu_data) override
 Generates translation unit's body.
virtual void generate_tu_epilogue () override
 Generates translation unit epilogue.
virtual ptr< reflection_listreflection_get () const
 for purposes of dumping
virtual ptr< field_list_listfield_values_get () const
 for purposes of dumping

Protected Member Functions

 asm_generator_base (::std::ostream &a__asm_generator_base__output)
 Generated constructor for class asm_generator_base.
virtual void gc_mark ()
 Marking routine for class asm_generator_base.

Private Attributes

::std::ostream & output
 An output stream.

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Performs asm code generation of a translation unit.

Note: A concrete derived class is target dependent and it is placed in /target/machine/${TARGET_CPU}/lestes/md/tasm/ directory.


Constructor & Destructor Documentation

lestes::md::tasm::asm_generator_base::asm_generator_base ( ::std::ostream &  a__asm_generator_base__output  )  [protected]

Generated constructor for class asm_generator_base.

Generated constructor for class asm_generator_base.

Author:
lsg


Member Function Documentation

std::ostream & lestes::md::tasm::asm_generator_base::output_get (  )  const

The method output_get returns the value of the field asm_generator_base::output.

Returns:
The value of asm_generator_base::output.
Author:
lsg

virtual void lestes::md::tasm::asm_generator_base::generate_tu_prologue (  )  [pure virtual]

Generates translation unit prologue.

It generates asm file headers, data sections and declarations

Implemented in lestes::md::tasm::asm_generator.

virtual void lestes::md::tasm::asm_generator_base::generate_tu_body ( ptr< vector< srp< ::lestes::backend_v2::structs::func_data > > >  tu_data  )  [pure virtual]

Generates translation unit's body.

Parameters:
tu_data A list of tu's functions.

Implemented in lestes::md::tasm::asm_generator.

virtual void lestes::md::tasm::asm_generator_base::generate_tu_epilogue (  )  [pure virtual]

Generates translation unit epilogue.

Implemented in lestes::md::tasm::asm_generator.

ptr< object::reflection_list > lestes::md::tasm::asm_generator_base::reflection_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::std::object.

Reimplemented in lestes::md::tasm::asm_generator.

ptr< object::field_list_list > lestes::md::tasm::asm_generator_base::field_values_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::std::object.

Reimplemented in lestes::md::tasm::asm_generator.

void lestes::md::tasm::asm_generator_base::gc_mark ( void   )  [protected, virtual]

Marking routine for class asm_generator_base.

Marking routine is used for garbage collection.

Author:
lsg

Reimplemented from lestes::std::mem::keystone.

Reimplemented in lestes::md::tasm::asm_generator.


Member Data Documentation

::std::ostream& lestes::md::tasm::asm_generator_base::output [private]

An output stream.

ptr< object::reflection_list > lestes::md::tasm::asm_generator_base::reflection = reflection [static, private]

Reimplemented from lestes::std::object.

Reimplemented in lestes::md::tasm::asm_generator.


The documentation for this class was generated from the following files:
Generated on Mon Feb 12 18:49:23 2007 for lestes by doxygen 1.5.1-20070107