* Added support for doing shifts by helper functions
[fw/sdcc] / src / avr / main.c
index c2172bf1d7fce084f60845526f1755587d889fea..a9bcd4696ce99e285b9adc059323d2c13cf772db 100644 (file)
@@ -142,7 +142,7 @@ static const char *_linkCmd[] = {
 };
 
 static const char *_asmCmd[] = {
-       "avr-as", "", "$1.asm", NULL
+       "avr-as", "-mmcu=avr3" , "$1.s", NULL
 };
 
 /* Globals */
@@ -158,7 +158,8 @@ PORT avr_port = {
         _asmCmd,
         "-plosgffc",           /* Options with debug */
         "-plosgff",            /* Options without debug */
-        0},
+        0,
+       ".s"},
        {
         _linkCmd,
         NULL,
@@ -167,7 +168,7 @@ PORT avr_port = {
         _defaultRules},
        {
         /* Sizes: char, short, int, long, ptr, fptr, gptr, bit, float, max */
-        1, 1, 2, 4, 2, 2, 3, 1, 4, 4},
+        1, 2, 2, 4, 2, 2, 3, 1, 4, 4},
        {
         "XSEG",
         "STACK",
@@ -189,7 +190,8 @@ PORT avr_port = {
         -1, 1, 4, 1, 1, 0},
        /* avr has an 8 bit mul */
        {
-        1, 0},
+          1, -1
+        },
        "_",
        _avr_init,
        _avr_parseOptions,
@@ -202,6 +204,7 @@ PORT avr_port = {
        _avr_genIVT,
        _avr_reset_regparm,
        _avr_regparm,
+        NULL,
        NULL,
        FALSE,
        0,                      /* leave lt */