38#include <boost/format.hpp> 
   91            interp.
step(stepping);
 
   92            simulatedCycles += stepping;
 
   94            std::cerr << 
"Simulation error: " << e.
errorMessage() << std::endl;
 
  103        if (simulatedCycles / 1000000 > (simulatedCycles - stepping) / 1000000)
 
  105                << 
"simulated " << simulatedCycles << 
" cycles" << std::endl;
 
  109        << 
"stop reasons:" << std::endl
 
  110        << 
"* compiled engine:" << std::endl;
 
  112        std::cout << 
"** " << compiled.
stopReason(i) << std::endl;
 
  115        << 
"* interp. engine:" << std::endl;
 
  117        std::cout << 
"** " << interp.
stopReason(i) << std::endl;
 
 
  128        std::cerr << 
"usage: ttasim-tandem machine.adf program.tpef";
 
 
#define assert(condition)
TTAMachine::Machine * machine
the architecture definition of the estimated processor
find Finds info of the inner loops in the program
CycleCount ClockCycleCount
Alias for ClockCycleCount.
int main(int argc, char *argv[])
void tandemSimulate(TTAMachine::Machine &machine, TTAProgram::Program &program)
std::string errorMessage() const
bool hasSimulationEnded() const
bool compareState(SimulatorFrontend &other, std::ostream *differences=NULL)
@ SIM_COMPILED
Compiled, faster simulation.
@ SIM_NORMAL
Default, interpreted simulation (debugging engine).
virtual void loadMachine(const std::string &fileName)
ClockCycleCount cycleCount() const
bool isSimulationInitialized() const
unsigned int stopReasonCount() const
StopReason stopReason(unsigned int index) const
void setStaticCompilation(bool value)
void setCompiledSimulationLeaveDirty(bool dirty)
virtual void loadProgram(const std::string &fileName)
virtual void step(double count=1)
static Machine * loadFromADF(const std::string &adfFileName)
static Program * loadFromTPEF(const std::string &tpefFileName, const TTAMachine::Machine &theMachine)