Fixed up ENDIAN warning with mingw32. Added ability to disable ucsim and device...
[fw/sdcc] / src / avr / main.c
index c38e00a94ae3531bf7c5ae4491e5b095aa7e65d3..6685a116bafbcfe76777bc83e8337f99f5d4ba98 100644 (file)
@@ -142,11 +142,12 @@ static const char *_linkCmd[] = {
 };
 
 static const char *_asmCmd[] = {
-       "avr-as", "", "$1.asm", NULL
+       "avr-as", "-mmcu=avr3" , "$1.s", NULL
 };
 
 /* Globals */
 PORT avr_port = {
+        TARGET_ID_AVR,
        "avr",
        "ATMEL AVR",            /* Target name */
        {
@@ -157,7 +158,8 @@ PORT avr_port = {
         _asmCmd,
         "-plosgffc",           /* Options with debug */
         "-plosgff",            /* Options without debug */
-        0},
+        0,
+       ".s"},
        {
         _linkCmd,
         NULL,
@@ -166,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",