X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Favr%2Fmain.c;h=e60bcec632f86e3d07a33708832d1b07ed3767b1;hb=5ee8507774af625a6bf974d7daa41b8db6eb521c;hp=93a1342b7658895989afb3b8fff412d8a7631d3a;hpb=5597e0621319d4bdce785c951ce8d035776ba377;p=fw%2Fsdcc diff --git a/src/avr/main.c b/src/avr/main.c index 93a1342b..e60bcec6 100644 --- a/src/avr/main.c +++ b/src/avr/main.c @@ -138,12 +138,12 @@ _avr_genIVT (FILE * of, symbol ** interrupts, int maxInterrupts) MUST be terminated with a NULL. */ static const char *_linkCmd[] = { - "linkavr", "", "$1", NULL + "linkavr", "", "\"$1\"", NULL }; /* $3 is replaced by assembler.debug_opts resp. port->assembler.plain_opts */ static const char *_asmCmd[] = { - "asavr", "$l" , "$3", "$1.s", NULL + "asavr", "$l" , "$3", "\"$1.s\"", NULL }; /* Globals */ @@ -151,17 +151,22 @@ PORT avr_port = { TARGET_ID_AVR, "avr", "ATMEL AVR", /* Target name */ + NULL, /* processor */ { + glue, TRUE, /* Emit glue around main */ MODEL_LARGE | MODEL_SMALL, - MODEL_SMALL}, + MODEL_SMALL + }, { _asmCmd, NULL, "-plosgff", /* Options with debug */ "-plosgff", /* Options without debug */ 0, - ".s"}, + ".s", + NULL, /* no do_assemble */ + }, { _linkCmd, NULL, @@ -191,6 +196,7 @@ PORT avr_port = { NULL, 0, }, + { NULL, NULL }, { -1, 1, 4, 1, 1, 0}, /* avr has an 8 bit mul */ @@ -200,12 +206,14 @@ PORT avr_port = { "_", _avr_init, _avr_parseOptions, + NULL, _avr_finaliseOptions, _avr_setDefaultOptions, avr_assignRegisters, _avr_getRegName, _avr_keywords, _avr_genAssemblerPreamble, + NULL, /* no genAssemblerEnd */ _avr_genIVT, NULL, // _avr_genXINIT _avr_reset_regparm, @@ -214,6 +222,7 @@ PORT avr_port = { NULL, NULL, FALSE, + TRUE, /* little endian */ 0, /* leave lt */ 1, /* transform gt ==> not le */ 0, /* leave le */