Otawa  0.10
VarTextDecoder.h
Go to the documentation of this file.
1 /*
2  * $Id$
3  * Copyright (c) 2007, IRIT UPS.
4  *
5  * VarTextDecoder class interface
6  */
7 #ifndef OTAWA_PROG_VAR_TEXT_DECODER_H
8 #define OTAWA_PROG_VAR_TEXT_DECODER_H
9 
10 #include <otawa/proc/Processor.h>
11 
12 namespace otawa {
13 
14 // External classes
15 class Inst;
16 
17 // VarTextDecoder class
18 class VarTextDecoder: public Processor {
19 public:
20  static VarTextDecoder _;
21  VarTextDecoder(void);
22 
23 protected:
24  virtual void processWorkSpace(WorkSpace *fw);
25 
26 private:
29  string getBytes(Address addr, int size);
30 };
31 
32 } // otawa
33 
34 #endif // OTAWA_PROG_VAR_TEXT_DECODER_H
dtd::RefAttr< BasicBlock * > source("source", dtd::STRICT|dtd::REQUIRED)
string getBytes(Address addr, int size)
Get a string representing the bytes in hexadecimal of the given address on the given length...
Definition: prog_VarTextDecoder.cpp:115
void processEntry(WorkSpace *ws, address_t address)
This functions follows all path from the given address.
Definition: prog_VarTextDecoder.cpp:168
WorkSpace * ws
Definition: Processor.h:185
uint32 size
elm::io::IntFormat address(Address addr)
Build a format to display addresses.
Definition: base.cpp:213
static VarTextDecoder _
Static processors.
Definition: VarTextDecoder.h:20
The processor class is implemented by all code processor.
Definition: Processor.h:49
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
virtual void processWorkSpace(WorkSpace *fw)
Process the given framework.
Definition: prog_VarTextDecoder.cpp:68
The representation of an address in OTAWA.
Definition: base.h:54
Inst * getInst(WorkSpace *ws, address_t address, Inst *source=0)
Find the instruction at the given address or raise an exception.
Definition: prog_VarTextDecoder.cpp:133
VarTextDecoder(void)
Constructor.
Definition: prog_VarTextDecoder.cpp:60
This class represents assembly instruction of a piece of code.
Definition: Inst.h:62
This text decoder may be used for most processor with fixed or variable length instructions.
Definition: VarTextDecoder.h:18