Skip to content

Compilation script, improve avr-gcc-ar call efficiency #5384

Open
@MorenoMG

Description

@MorenoMG

Hi to all

This is my first post and first approach to Arduino world.
Today I installed Arduino IDE 1.6.11 on a Windows 10 laptop.

All work fine but the system take long time to compile.
I removed antivirus, placed compilation folder in a RAMDisk but nothing change, a simple program like BlinkWithoutDelay is compiled in about 25 seconds, a life.

I enabled verbose mode and looked inside compilation process.
The biggest time leakage is the continuous calling to avr-gcc-ar, for BlinkWithoutDelay avr-gcc-ar is called 26 times for a total of about 15 seconds.

I created an enormous single call command line with about 100 o files
This call take less than one second, more than 100 times faster.

Is possible modify the script generation module to create a single call to avr-gcc-ar instead of a call for each file??

Bye, Moreno
Uploading Call.Txt…

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions