more gcc code size reduction for AVR

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eccerr0r
    Solder Sloth
    • Nov 2012
    • 8701
    • USA

    #1

    more gcc code size reduction for AVR

    Well it's time again to upgrade gcc... I started with gcc 4, and went to gcc 7... got a huge bloat increase, but figured -Os seemed to clear up the bloat.

    Now gcc 7 is EOL and went to gcc 10. Code hasn't changed any, makefile didn't change, I got a bit under 2% bloat with just a compiler change, and surprisingly no makefile changes were needed unlike the previous upgrade! For this one regression testing project luckily I had some room to spare but others I don't, and have been running up against the end of the flash memory.

    Of course I can't do -Os -Os, that wouldn't do any good... so anyone find any stuff that would help out size increase? And once again this is an AVR and every byte counts...

Related Topics

Collapse

  • m1ch43lzm
    Notice to users of XGecu TL866II Plus / T48 / T56 / T76 programmers regarding BIOS backup file size
    by m1ch43lzm
    Hi everyone
    I noticed on the Xgpro software the BIOS backup files have extra bytes at the end when reading some chips, this is because the Xgpro software also reads the OTP region of those flash chips, and by default will append that region to the saved file
    Programmer models: XGecu TL866II Plus / T48 / T56 / T76

    Example: GD25LQ128D (1.8V), IC size is listed as 0x1000000 Bytes (16777216 bytes) + 0xC00 bytes, those extra 0xC00 bytes will be appended to the end of the saved file by default, resulting in a file size of 16780288 bytes
    There's also an extra OTP Secu.R...
    09-06-2025, 05:47 PM
  • howardc64
    A1312 (27” iMac 2009-2011) A1407 (Thunderbolt Display) A1316 (Cinema Display) Display Black Screen Repair
    by howardc64
    Problem

    This is an LG edge LED lit LCD Display. The LEDs are on the bottom edge of the display. There are 2 bars (left and right) Each bar has many LEDs and a 6 pin connector. Each pin drive several LEDs thus is the highest current flow / heat junction. The weak lead free solder gradually fails with thermal expansion/contraction cycling and increases resistance. PSU will compensate up to a point, then when the current is too high, PSU just shut down the backlight causing a dark display. I have even seen one which the connector just fell off as solder points became completely detached....
    08-04-2024, 10:36 PM
  • Document Archive
    LCD LED TV Service Menu Codes
    by Document Archive
    ALL LCD LED TV SERVICE MENU CODES

    Service Menu Code with Board Name

    China Universal Board / Jumper Board Service Menu Code
    Changhong Ruba Service Menu Code
    Ecostar LED TV Service Menu Code
    Orient LED TV Service Menu Code
    Haier LED TV Service Menu Code
    TCL LED TV Service Menu Code
    Samsung LED TV Service Menu Code
    LG LED TV Service Menu Code
    Videocon LED TV Service Menu Code
    Supra LED TV Service Menu Code
    Toshiba LED TV Service Menu Code
    Symphony LED TV Service Menu Code
    Veste/ LED TV Service Menu Code...
    10-31-2024, 03:58 AM
  • dragometin
    Hitachi 40HYC42
    by dragometin
    TV Model: Hitachi 40HYC42
    Power Supply: 17IPS71
    MainBoard: 17MB95M
    Panel: VES400UNDS-2D-NO3

    When the set came in it was dead. Fuse was open primary side and the power mosfet was shorted. So I ordered a new power supply. Now it turns on, only displays "Hitachi" and then power off red and blue led flashing.

    I had to modify the 0ohm resistors in the led backlight of the new PS like the original power supply.
    Is there any variants on 17IPS71 power supply's?

    UART output pins 10 and 12 on scart connector:

    Code:
    12:24:04.595
    ...
    08-08-2024, 05:53 AM
  • Curtissimo
    HP EliteBook 850 G8 - Error code / Caps Lock permanently on and blinks twice every 6 seconds
    by Curtissimo
    Hi everyone.

    I have a HP Elitebook 850 G8.
    Serial: 5CG2324XM0
    ProdID 6L8D5EC#ABA
    It has a Winbond W25Q256JVEN Chip.

    I need to remove BIOS Password.

    I made a dump with an CHA341A programmer and NeoProgrammer 2.2.0.10.

    Attached my dump.

    I also used the HP Unlocker tool to create an unlocked file (I followed the guidelines)

    I also downloaded latest HP BIOS Update (SP158137) which includes 3 .bin files. I found the Number T76 in my original dump, so I used: T76_01210000.bin

    What I did:...
    08-26-2025, 04:42 AM
  • Loading...
  • No more items.
Working...