C:/Users/Dennis/src/lang/russell.orig/src/pass5c/allocate.c File Reference

#include "parm.h"
#include <stdio.h>
#include "stree/ststructs.mh"
#include "codeutil.h"
#include "../pass4/sigs.h"

Go to the source code of this file.

Data Structures

struct  blocks

Defines

#define DEBUG
#define IFVERBOSE(x)
#define MAXOBJSZ   512

Functions

void Vfree_blocks ()
void realloc_blocks (NODE *block)
void add_block (NODE *block)
 Vallocwalk (NODE *p)
static void check_vacuous (NODE *p)
int n_vacuous_params (NODE *p)
 Vallocate (NODE *p, boolean unused_decl)

Variables

FILE * unparse_file
NODEVcurrent_func
NODEVcurrent_ar
int Vstatic_level = -1
int Vnext_free
int Vhigh_water
boolean Vextent_limited
boolean Vallocate_on_stack
boolean Vcallcc
boolean Nflag
boolean Vflag
boolean Gflag
boolean Rflag
boolean hflag
long max_addr_regs
long max_int_regs
long n_addr_regs = 0
long n_int_regs = 0
int yynerrs
int n_decls
struct blocksVcurrent_blocks
static boolean found_non_vacuous
static n_vacuous


Define Documentation

#define DEBUG

Definition at line 1 of file allocate.c.

#define IFVERBOSE (  ) 

Definition at line 16 of file allocate.c.

#define MAXOBJSZ   512

Definition at line 25 of file allocate.c.


Function Documentation

void add_block ( NODE block  ) 

Definition at line 130 of file allocate.c.

References blocks::bl_block, blocks::bl_next, dbgmsg, is_empty, malloc, NIL, and Vcurrent_blocks.

Referenced by Vallocwalk().

static void check_vacuous ( NODE p  )  [static]

Definition at line 529 of file allocate.c.

References found_non_vacuous, n_vacuous, TRUE, and vacuous_arg().

Referenced by n_vacuous_params().

int n_vacuous_params ( NODE p  ) 

Definition at line 541 of file allocate.c.

References check_vacuous(), FALSE, found_non_vacuous, Gflag, maprlist(), and n_vacuous.

Referenced by compile_stub(), Gfind_inline(), Gfunc_body(), and Vallocate().

void realloc_blocks ( NODE block  ) 

Definition at line 99 of file allocate.c.

References blocks::bl_block, blocks::bl_next, dbgmsg, getname(), NIL, Vcurrent_blocks, Vcurrent_func, and Vflag.

Referenced by Vallocwalk().

Vallocate ( NODE p,
boolean  unused_decl 
)

Definition at line 552 of file allocate.c.

References AR_FIRST_PARM, ASSERT, dbgmsg, errmsg0, FALSE, Gflag, has_sig, if(), IFVERBOSE, impure(), length(), MAXOBJSZ, n_addr_regs, n_int_regs, n_params, n_vacuous_params(), Nflag, NIL, sig, TRUE, v, Vallocate_on_stack, Vallocwalk(), Vcallcc, Vcurrent_ar, Vcurrent_blocks, Vcurrent_func, Vextent_limited, Vfree_blocks(), Vhigh_water, Vnext_free, and Vstatic_level.

Referenced by Vallocwalk(), Vgeneratecode(), and Vgeneratepcode().

Vallocwalk ( NODE p  ) 

Definition at line 152 of file allocate.c.

References add_block(), AR_FIRST_PARM, avail_loc, dbgmsg, errmsg0, FALSE, getname(), Gflag, hflag, is_int_const(), length(), max_addr_regs, max_int_regs, MAXOBJSZ, n_addr_regs, n_decls, n_int_regs, NIL, realloc_blocks(), Rflag, TRUE, unparse(), unparse_file, v, Vallocate(), Vallocate_on_stack, Vcallcc, Vcurrent_ar, Vcurrent_blocks, Vcurrent_func, Vextent_limited, Vflag, Vhigh_water, Vnext_free, and Vstatic_level.

Referenced by Vallocate().

void Vfree_blocks (  ) 

Definition at line 85 of file allocate.c.

References blocks::bl_next, free, NIL, and Vcurrent_blocks.

Referenced by Vallocate().


Variable Documentation

boolean found_non_vacuous [static]

Definition at line 526 of file allocate.c.

Referenced by check_vacuous(), and n_vacuous_params().

boolean Gflag

Definition at line 7 of file extract_sig.c.

boolean hflag

Definition at line 140 of file main.c.

long max_addr_regs

Definition at line 142 of file main.c.

Referenced by main(), and Vallocwalk().

long max_int_regs

Definition at line 141 of file main.c.

Referenced by main(), and Vallocwalk().

long n_addr_regs = 0

Definition at line 67 of file allocate.c.

Referenced by Vallocate(), and Vallocwalk().

int n_decls

Definition at line 76 of file allocate.c.

Referenced by Vallocwalk().

long n_int_regs = 0

Definition at line 68 of file allocate.c.

Referenced by Vallocate(), and Vallocwalk().

n_vacuous [static]

Definition at line 527 of file allocate.c.

Referenced by check_vacuous(), and n_vacuous_params().

boolean Nflag

Definition at line 131 of file main.c.

boolean Rflag

Definition at line 134 of file main.c.

Referenced by main(), and Vallocwalk().

FILE* unparse_file

Definition at line 6 of file unparse.c.

boolean Vallocate_on_stack

Definition at line 44 of file allocate.c.

Referenced by Vallocate(), and Vallocwalk().

boolean Vcallcc

Definition at line 56 of file allocate.c.

Referenced by Vallocate(), and Vallocwalk().

NODE* Vcurrent_ar

Definition at line 30 of file allocate.c.

Referenced by Vallocate(), and Vallocwalk().

struct blocks * Vcurrent_blocks

Referenced by add_block(), realloc_blocks(), Vallocate(), Vallocwalk(), and Vfree_blocks().

NODE* Vcurrent_func

Definition at line 29 of file allocate.c.

Referenced by realloc_blocks(), Vallocate(), and Vallocwalk().

boolean Vextent_limited

Definition at line 41 of file allocate.c.

Referenced by Vallocate(), and Vallocwalk().

boolean Vflag

Definition at line 6 of file extract_sig.c.

int Vhigh_water

Definition at line 36 of file allocate.c.

Referenced by Vallocate(), and Vallocwalk().

int Vnext_free

Definition at line 34 of file allocate.c.

Referenced by Vallocate(), and Vallocwalk().

int Vstatic_level = -1

Definition at line 33 of file allocate.c.

Referenced by Vallocate(), and Vallocwalk().

int yynerrs

Definition at line 31 of file testvertex.c.


Generated on Fri Jan 25 10:39:50 2008 for russell by  doxygen 1.5.4