CCTLib
Calling-context and data-object attribution library for Intel Pin
exc_polymorphic.cpp File Reference
#include <cstdint>
#include <cstdio>
#include <stdexcept>
+ Include dependency graph for exc_polymorphic.cpp:

Go to the source code of this file.

Classes

struct  Base
 
struct  Mid
 
struct  Leaf
 

Macros

#define ITERS   1000
 

Functions

 __attribute__ ((noinline)) void poly_try_marker(int i)
 
static void thrower (int i)
 
int main (int argc, char **argv)
 

Variables

static volatile uint64_t sink
 
static uint64_t buf [ITERS]
 

Macro Definition Documentation

◆ ITERS

#define ITERS   1000

Definition at line 9 of file exc_polymorphic.cpp.

Function Documentation

◆ __attribute__()

__attribute__ ( (noinline)  )

Definition at line 13 of file exc_polymorphic.cpp.

References sink.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 33 of file exc_polymorphic.cpp.

References buf, ITERS, sink, and thrower().

◆ thrower()

static void thrower ( int  i)
static

Definition at line 24 of file exc_polymorphic.cpp.

References buf.

Referenced by main().

Variable Documentation

◆ buf

uint64_t buf[ITERS]
static

Definition at line 11 of file exc_polymorphic.cpp.

Referenced by main(), and thrower().

◆ sink

volatile uint64_t sink
static

Definition at line 10 of file exc_polymorphic.cpp.

Referenced by __attribute__(), and main().