ack/util/opt/alloc.h

58 lines
1.5 KiB
C
Raw Normal View History

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".
*/
#ifndef ALLOC_H_
#define ALLOC_H_
#include "types.h"
1984-05-17 14:14:29 +00:00
1984-05-17 13:42:36 +00:00
extern line_p newline();
extern offset *newrom();
extern sym_p newsym();
extern num_p newnum();
extern arg_p newarg();
extern argb_p newargb();
extern reg_p newreg();
void oldline(register line_p lnp);
void oldreg(reg_p rp);
void oldargs(register arg_p ap);
void oldargb(register argb_p abp);
void oldnum(num_p lp);
void coreinit(void);
1984-05-17 13:42:36 +00:00
#define USEMALLOC /* if defined malloc() and free() are used */
1984-05-17 13:42:36 +00:00
#undef COREDEBUG /* keep records and print statistics */
1984-05-17 13:42:36 +00:00
/*
* The next define gives if defined the number of pseudo's outside
* procedures that are collected without processing.
* If undefined all pseudo's will be collected but that may
* give trouble on small machines, because of lack of room.
*/
#define PSEUBETWEEN 200
#ifndef USEMALLOC
/*
* Now the real bitsqueezing starts.
* When running on a machine where code and data live in
* separate address-spaces it is worth putting in some extra
* code to save on probably less data.
*/
#define SEPID /* code and data in separate spaces */
/*
* If the stack segment and the data are separate as on a PDP11 under UNIX
* it is worth squeezing some shorts out of the stack page.
*/
#define STACKROOM 3200 /* number of shorts space in stack */
#else
#define STACKROOM 1 /* 0 gives problems */
#endif /* USEMALLOC */
#endif /* ALLOC_H_ */