1994-06-24 11:31:16 +00:00
|
|
|
/* $Id$ */
|
1987-03-09 19:15:41 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
1984-11-26 14:14:55 +00:00
|
|
|
|
|
|
|
/* I N L I N E S U B S T I T U T I O N
|
|
|
|
*
|
|
|
|
* I L _ A U X . H
|
|
|
|
*/
|
|
|
|
|
2019-10-31 22:05:22 +00:00
|
|
|
#include <stdio.h> /* FILE */
|
|
|
|
|
|
|
|
int tsize(int type); /*
|
1984-11-26 14:14:55 +00:00
|
|
|
* Determine the size of a variable of
|
|
|
|
* the given type.
|
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
line_p duplicate(line_p lnp); /*
|
1984-11-26 14:14:55 +00:00
|
|
|
* Make a duplicate of the given EM
|
|
|
|
* instruction. Pseudos may not be
|
|
|
|
* passed as argumnets.
|
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
line_p copy_expr(line_p l1); /*
|
1984-11-26 14:14:55 +00:00
|
|
|
* copy the expression l1.
|
|
|
|
* Pseudos may not be contained in
|
|
|
|
* the list of instructions.
|
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
void rem_call(call_p c); /*
|
1984-11-26 14:14:55 +00:00
|
|
|
* Remove a call from main memory.
|
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
void remunit(short kind, proc_p p, line_p l);
|
|
|
|
/*
|
1984-11-26 14:14:55 +00:00
|
|
|
* Remove the CFG and EM text of
|
|
|
|
* a procedure from core.
|
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
void remcc(calcnt_p head); /*
|
1984-11-26 14:14:55 +00:00
|
|
|
* Remove call-count info from core.
|
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
call_p getcall(FILE *cf); /*
|
1984-11-30 10:30:22 +00:00
|
|
|
* Read a call from the call-file
|
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
line_p get_text(FILE *lf, proc_p *p_out);
|
|
|
|
/*
|
1984-11-30 10:30:22 +00:00
|
|
|
* Read the EM text of one procedure.
|
|
|
|
* The procedure read is returned via
|
|
|
|
* p_out.
|
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
calcnt_p getcc(FILE *ccf, proc_p p);
|
|
|
|
/*
|
1984-11-30 10:30:22 +00:00
|
|
|
* Read the call-count information
|
|
|
|
* of procedure p.
|
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
void putcall(call_p call, FILE *cfile, short level);
|
|
|
|
/*
|
1984-11-30 10:30:22 +00:00
|
|
|
* Write the call
|
|
|
|
* with the given id to the given file.
|
|
|
|
* The level is the nesting level, used by
|
|
|
|
* putcall when it calls itself recurively.
|
|
|
|
* It should be 0 on outer levels.
|
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
long putcc(calcnt_p head, FILE *ccf);
|
|
|
|
/*
|
1984-11-30 10:30:22 +00:00
|
|
|
* Write call-count information to
|
|
|
|
* file ccf.
|
|
|
|
*/
|