X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fxa51%2Fmain.c;h=fee631866229a848724a3d8864a377f6ab2bf784;hb=2deb910bd0d831f531395241e3fe0338c2f1ab13;hp=51bc27f574d05d898cc0da77a6aaac30e6ff97c8;hpb=8c9c17bede2d442a7690c614260ee38e6b40b39a;p=fw%2Fsdcc diff --git a/src/xa51/main.c b/src/xa51/main.c index 51bc27f5..fee63186 100755 --- a/src/xa51/main.c +++ b/src/xa51/main.c @@ -53,7 +53,7 @@ void _xa51_genAssemblerEnd (FILE * of) //rewinds==1 ? '\0' : 's'); } -void xa51_assignRegisters (eBBlock ** ebbs, int count); +void xa51_assignRegisters (ebbIndex *); static int regParmFlg = 0; /* determine if we can register a parameter */ @@ -64,13 +64,13 @@ _xa51_init (void) } static void -_xa51_reset_regparm () +_xa51_reset_regparm (void) { regParmFlg = 0; } static int -_xa51_regparm (sym_link * l) +_xa51_regparm (sym_link * l, bool reentrant) { return 0; // for now /* for this processor it is simple @@ -269,12 +269,15 @@ PORT xa51_port = /* Sizes: char, short, int, long, ptr, fptr, gptr, bit, float, max */ 1, 2, 2, 4, 2, 2, 3, 1, 4, 4 }, + /* tags for generic pointers */ + { 0x00, 0x40, 0x60, 0x80 }, /* far, near, xstack, code */ { "XSEG (XDATA)", "STACK (XDATA)", "CSEG (CODE)", "DSEG (DATA)", NULL, //"ISEG (DATA)", + NULL, //"PSEG (PAG,XDATA)", "XSEG (XDATA)", "BSEG (BIT)", NULL, //"RSEG (DATA)", @@ -284,6 +287,7 @@ PORT xa51_port = "HOME (CODE)", "XISEG (XDATA)", // initialized xdata "XINIT (CODE)", // a code copy of xiseg + "CONST (CODE)", // const_name - const data (code or not) NULL, // default local map NULL, // default global map 1 @@ -301,10 +305,24 @@ PORT xa51_port = { 2, -2 }, + { + xa51_emitDebuggerSymbol + }, + { + 255/3, /* maxCount */ + 3, /* sizeofElement */ + /* The rest of these costs are bogus. They approximate */ + /* the behavior of src/SDCCicode.c 1.207 and earlier. */ + {4,4,4}, /* sizeofMatchJump[] */ + {0,0,0}, /* sizeofRangeCompare[] */ + 0, /* sizeofSubtract */ + 3, /* sizeofDispatch */ + }, "_", _xa51_init, _xa51_parseOptions, NULL, + NULL, _xa51_finaliseOptions, _xa51_setDefaultOptions, xa51_assignRegisters,