more gcc code size reduction for AVR

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eccerr0r
    Solder Sloth
    • Nov 2012
    • 8678
    • 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

  • 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
  • Sorrow1
    Intergraph TDZ 2000 mainboard post code 2F/2E
    by Sorrow1
    Hi,

    I try to repair an old Intergraph TDZ 2000 from 1998. It is a dual Pentum II machine based on Intel 440LX chipset. There is a non-removable bios chip named PhoenixBios B1787840. I cannot see any physical damage to the board. All caps look OK.

    It shows no picture and POST stops with code 2F/2E regardless whether or not any graphic card is plugged in. If memory is removed, it stops on previous code 28/17 and stars beeping. I tested both CPUs in another machine and I also use RAM from another machine.

    When I recorded video of POST card and played it in slow...
    01-03-2024, 04:13 AM
  • hinisa
    Xiaomi router freezes at boot after re-capping
    by hinisa
    I'm using Xiaomi Router 4A gigabit edition as wireless repeater. It worked fine for 2 years or so, but last week, wireless started to disappear.

    When I unplug/replug the power, it was working fine for a day/half a day or so until it freezes again.

    After testing with different power supply adapters and concluding it wasn't the issue I finally opened the case and this was the situation:



    Anyway I proceed to clean up the mess and replace all caps but unfortunately it made the situation worse. Now router can't even boot, either it freezes during...
    07-08-2023, 05:58 AM
  • Loading...
  • No more items.
Working...