osprey/ir_tools/ir_size.cxx File Reference

#include <elf.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/elf_whirl.h>
#include <libgen.h>
#include <algorithm>
#include "defs.h"
#include "pu_info.h"
#include "opcode.h"
#include "wn.h"
#include "ir_bread.h"
#include "err_host.tab"

Include dependency graph for ir_size.cxx:

Go to the source code of this file.

Functions/Subroutines

BOOL file_exists (char *path)
static void size_of_each_pu (PU_Info *pu_tree, BOOL verbose)
static void print_size (const char *name, INT size)
static void ir_size (char *input_file, BOOL verbose)
static void usage (char *progname)
 main (INT argc, char *argv[])
void Signal_Cleanup (INT sig)
const char * Host_Format_Parm (INT kind, MEM_PTR parm)

Variables

static voidhandle
static INT sym_size = 0
static INT wn_size = 0
static INT dg_size = 0
static INT pref_size = 0
static INT fb_size = 0
INT8 Debug_Level = 0


Function Documentation

BOOL file_exists ( char *  path  ) 

Definition at line 62 of file ir_size.cxx.

References ENOENT, ENOTDIR, errno, FALSE, INT, stat, and TRUE.

const char* Host_Format_Parm ( INT  kind,
MEM_PTR  parm 
)

Definition at line 224 of file ir_size.cxx.

References NULL.

static void ir_size ( char *  input_file,
BOOL  verbose 
) [static]

main ( INT argc  ,
char *  argv[] 
)

static void print_size ( const char *  name,
INT  size 
) [static]

Definition at line 109 of file ir_size.cxx.

References printf().

Referenced by ir_size().

void Signal_Cleanup ( INT  sig  ) 

Definition at line 222 of file ir_size.cxx.

static void size_of_each_pu ( PU_Info pu_tree,
BOOL  verbose 
) [static]

static void usage ( char *  progname  )  [static]

Definition at line 162 of file ir_size.cxx.

References exit(), and fprintf().


Variable Documentation

INT8 Debug_Level = 0

Definition at line 226 of file ir_size.cxx.

INT dg_size = 0 [static]

Definition at line 75 of file ir_size.cxx.

Referenced by ir_size(), and size_of_each_pu().

INT fb_size = 0 [static]

Definition at line 77 of file ir_size.cxx.

Referenced by ir_size(), and size_of_each_pu().

void* handle [static]

INT pref_size = 0 [static]

Definition at line 76 of file ir_size.cxx.

Referenced by ir_size(), and size_of_each_pu().

INT sym_size = 0 [static]

INT wn_size = 0 [static]


Generated on Wed Apr 8 15:11:07 2009 for Open64 by  doxygen 1.5.6