Added a Giant size
This commit is contained in:
parent
927a5636bd
commit
46ad9ff041
3 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
Loading…
Reference in a new issue