/* Copyright (c) 1979 Regents of the University of California */
/* static char sccsid[] = "@(#)objfmt.h 4.1 10/10/80"; */
* the creation time, the size and the magic number of the obj file
# define HEADER_BYTES 1024 /* the size of px_header */
# define PX_HEADER "/usr/lib/px_header" /* px_header's name */
# define PX_INTRP "/usr/ucb/px" /* the interpreter's name */
* the file of error messages created by mkstr
# define ERR_STRNGS "/usr/lib/pi2.0strings"
# define ERR_STRNGS "/usr/lib/pc2.0strings"
* these are because of varying sizes of pointers
# define INDX 2 /* log2 of sizeof( * ) */
# define PTR_DCL unsigned long /* for pointer variables */
# define SHORTADDR 32768 /* maximum short address */
# define TOOMUCH 65536 /* maximum variable size */
# define MAXSET 65536 /* maximum set size */
* Offsets due to the structure of the runtime stack.
* DPOFF1 is the amount of fixed storage in each block allocated
* as local variables for the runtime system.
* since locals are allocated negative offsets,
* -DPOFF1 is the last used implicit local offset.
* DPOFF2 is the size of the block mark.
* since arguments are allocated positive offsets,
* DPOFF2 is the end of the implicit arguments.
* for obj, the first argument has the highest offset
* from the stackpointer. and the block mark is an
* implicit last parameter.
* for pc, the first argument has the lowest offset
* from the argumentpointer. and the block mark is an
* implicit first parameter.
# define INPUT_OFF -8 /* offset of `input' */
# define OUTPUT_OFF -4 /* offset of `output' */
# define DPOFF1 ( sizeof rtlocs - sizeof rtlocs.unwind )
# define DPOFF2 ( sizeof (long) )
# define MAGICNUM 0403 /* obj magic number */
# define MAXSET 65536 /* maximum set size */