Added a Giant size

This commit is contained in:
ceriel 1987-05-12 09:16:15 +00:00
parent 927a5636bd
commit 46ad9ff041
3 changed files with 5 additions and 3 deletions

View file

@ -80,7 +80,7 @@ getcore() {
getsizes(str) char *str; { getsizes(str) char *str; {
/* /*
* accepts -ss (small), -sm (medium), -sl (large) * accepts -ss (small), -sm (medium), -sl (large), -sg (giant)
*/ */
switch(LC(*str)) { switch(LC(*str)) {
@ -88,6 +88,7 @@ getsizes(str) char *str; {
case 's': oursize = &sizes[0]; break; case 's': oursize = &sizes[0]; break;
case 'm': oursize = &sizes[1]; break; case 'm': oursize = &sizes[1]; break;
case 'l': oursize = &sizes[2]; break; case 'l': oursize = &sizes[2]; break;
case 'g': oursize = &sizes[3]; break;
} }
} }

View file

@ -232,7 +232,7 @@ struct rel { /* for relocation tables */
#define HEADUCON 7 #define HEADUCON 7
#define HEADFCON 8 #define HEADFCON 8
#define NDEFAULT 3 /* number of different sizes available */ #define NDEFAULT 4 /* number of different sizes available */
struct sizes { struct sizes {
int n_mlab; /* # of global labels per module */ int n_mlab; /* # of global labels per module */
int n_glab; /* # of extern global labels */ int n_glab; /* # of extern global labels */

View file

@ -131,6 +131,7 @@ size_t sizes[NDEFAULT] = {
/* mlab, glab,mproc,xproc, proc */ /* mlab, glab,mproc,xproc, proc */
{ 151, 29, 31, 73, 130 }, { 151, 29, 31, 73, 130 },
{ 307, 127, 151, 401, 460 }, { 307, 127, 151, 401, 460 },
{ 601, 251, 151, 401, 600 } { 601, 251, 151, 401, 600 },
{2000, 2000, 2000, 2000, 2000 }
}; };
size_t *oursize = &sizes[1] ; /* point to selected sizes */ size_t *oursize = &sizes[1] ; /* point to selected sizes */