X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fmcs51%2Fmain.c;h=b23a03d0e15ad7db0455d61a16b8fa466d401014;hb=fd99dea2da897ab79bde30eb6718abf497e12265;hp=99484c84e1d5b0307ad856fcf4b29c604a775943;hpb=9ab7652d61a70e7caae9e93ad80d87b98cd93bca;p=fw%2Fsdcc diff --git a/src/mcs51/main.c b/src/mcs51/main.c index 99484c84..b23a03d0 100644 --- a/src/mcs51/main.c +++ b/src/mcs51/main.c @@ -39,6 +39,7 @@ static char *_mcs51_keywords[] = "_xdata", "_pdata", "_idata", + "_naked", NULL }; @@ -84,7 +85,7 @@ static void _mcs51_finaliseOptions (void) { if (options.model == MODEL_LARGE) { - port->mem.default_local_map = data; + port->mem.default_local_map = xdata; port->mem.default_globl_map = xdata; } else @@ -130,9 +131,10 @@ static const char *_linkCmd[] = "aslink", "-nf", "$1", NULL }; +/* $3 is replaced by assembler.debug_opts resp. port->assembler.plain_opts */ static const char *_asmCmd[] = { - "asx8051", "-plosgffc", "$1.asm", NULL + "asx8051", "$l", "$3", "$1.asm", NULL }; /* Globals */ @@ -148,13 +150,16 @@ PORT mcs51_port = }, { _asmCmd, + NULL, "-plosgffc", /* Options with debug */ "-plosgff", /* Options without debug */ - 0 + 0, + ".asm" }, { _linkCmd, NULL, + NULL, ".rel" }, { @@ -162,7 +167,7 @@ PORT mcs51_port = }, { /* Sizes: char, short, int, long, ptr, fptr, gptr, bit, float, max */ - 1, 1, 2, 4, 1, 2, 3, 1, 4, 4 + 1, 2, 2, 4, 1, 2, 3, 1, 4, 4 }, { "XSEG (XDATA)", @@ -186,7 +191,7 @@ PORT mcs51_port = }, /* mcs51 has an 8 bit mul */ { - 1, 0 + 1, -1 }, "_", _mcs51_init, @@ -201,6 +206,7 @@ PORT mcs51_port = _mcs51_reset_regparm, _mcs51_regparm, NULL, + NULL, FALSE, 0, /* leave lt */ 0, /* leave gt */ @@ -208,5 +214,6 @@ PORT mcs51_port = 1, /* transform >= to ! < */ 1, /* transform != to !(a == b) */ 0, /* leave == */ + FALSE, /* No array initializer support. */ PORT_MAGIC };