X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Favr%2Fmain.c;h=aa9a9d3e9440dc47f12905de3b50772a9d480e11;hb=4db4740164fed3cb25145cfdaadb986fc0690507;hp=d0faac3cdc4d01d97b26a6d997ba2fc67da429c7;hpb=5d609f8d1aef366db39770b8e9c26757b7e7622e;p=fw%2Fsdcc diff --git a/src/avr/main.c b/src/avr/main.c index d0faac3c..aa9a9d3e 100644 --- a/src/avr/main.c +++ b/src/avr/main.c @@ -42,7 +42,7 @@ _avr_init (void) } static void -_avr_reset_regparm () +_avr_reset_regparm (void) { regParmFlg = 0; } @@ -69,7 +69,7 @@ _avr_regparm (sym_link * l) return 0; } -void avr_assignRegisters (eBBlock ** ebbs, int count); +void avr_assignRegisters (ebbIndex *); static bool _avr_parseOptions (int *pargc, char **argv, int *i) @@ -207,6 +207,7 @@ PORT avr_port = { "CSEG", "DSEG", "ISEG", + NULL, //PSEG "XSEG", "BSEG", "RSEG", @@ -216,6 +217,7 @@ PORT avr_port = { "HOME", NULL, // initialized xdata NULL, // a code copy of xiseg + "CONST (CODE)", // const_name - const data (code or not) NULL, NULL, 0, @@ -230,10 +232,21 @@ PORT avr_port = { { avr_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 */ + }, "_", _avr_init, _avr_parseOptions, NULL, + NULL, _avr_finaliseOptions, _avr_setDefaultOptions, avr_assignRegisters,