source: trunk/IPs/systemC/processor/Morpheo/Common/include/MemCheck.h @ 112

Last change on this file since 112 was 112, checked in by rosiere, 15 years ago

1) Stat_list : fix retire old and new register bug
2) Stat_list : remove read_counter and valid flag, because validation of destination is in retire step (not in commit step)
3) Model : add class Model (cf Morpheo.sim)
4) Allocation : alloc_interface_begin and alloc_interface_end to delete temporary array.
5) Script : add distexe.sh
6) Add Comparator, Multiplier, Divider. But this component are not implemented
7) Software : add Dhrystone

  • Property svn:keywords set to Id
File size: 552 bytes
Line 
1#ifndef MEMCHECK_H
2#define MEMCHECK_H
3#ifdef DEBUG_MEMORY_LEAK
4
5#include <cstddef>  // For size_t
6
7// Usurp the new operator (both scalar and array versions)
8void* operator new(std::size_t, const char*, long);
9void* operator new[](std::size_t, const char*, long);
10#define new new (__FILE__, __LINE__)
11 
12extern bool traceFlag;
13#define TRACE_ON() traceFlag = true
14#define TRACE_OFF() traceFlag = false
15   
16extern bool activeFlag;
17#define MEM_ON() activeFlag = true
18#define MEM_OFF() activeFlag = false
19
20#endif // DEBUG_MEMORY_LEAK
21#endif // MEMCHECK_H
22
Note: See TracBrowser for help on using the repository browser.