[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #20092] AVR-GCC code size increase from 3.4.6 to 4.1

From: anonymous
Subject: [avr-libc-dev] [bug #20092] AVR-GCC code size increase from 3.4.6 to 4.1.2
Date: Wed, 06 Jun 2007 02:33:56 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)


                 Summary: AVR-GCC code size increase from 3.4.6 to 4.1.2
                 Project: AVR C Runtime Library
            Submitted by: None
            Submitted on: Wednesday 06/06/2007 at 02:33 UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any



Additional code size introduced in AVR-GCC compiler 4.1.2 as packaged in
WinAVR-20070525 and as compared to 3.4.6 packaged in WinAVR-20060421

All examples targeting ATTiny2313 using AVRStudio 4.13
My original program compiled to 1990 bytes, recompiled under 4.1.2  increased
to 2070 bytes (exceeding ATTiny2313 capacity).

Some specific functions causing issues detailed below:

Bare main function:

  int main( void )
WinAVR-20060421 102 bytes
WinAVR-20070525 108 bytes
+6 bytes

EEPROM code:

  #include <avr/eeprom.h>

  struct {
    int x;
  } ee;

  // Main - a simple test program
  int main( void )
    unsigned char *eeptr=0x0000;
    eeprom_read_block(&ee, eeptr, sizeof(ee));

WinAVR-20060421 196 bytes
WinAVR-20070525 218 bytes
+16 bytes


  #include <avr/pgmspace.h>

  int main(void){
    PGM_P defaults =   PSTR("123456");

WinAVR-20060421 118 bytes
WinAVR-20070525 148 bytes
+24 bytes


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]