Skip to content

Instantly share code, notes, and snippets.

@bploeckelman
Created September 3, 2012 22:57
Show Gist options
  • Save bploeckelman/3614435 to your computer and use it in GitHub Desktop.
Save bploeckelman/3614435 to your computer and use it in GitHub Desktop.
Ex2. Dynamic BasicBlock Count - atexit handler
#include <stdio.h>
#include <stdlib.h>
extern int bbCounter;
void exitfunc()
{
printf("NUMBER OF BASIC BLOCKS EXECUTED := %d\n", bbCounter);
}
void setupAtExit()
{
atexit(exitfunc);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment