Compilation script, improve avr-gcc-ar call efficiency
- Dominant language
- Java
- Stars
- 14.6k
- Forks
- 7k
- PR merge metrics
- No merged PRs in 30d
Description
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…]()
Contributor guide
Research direction
Start with the verbose compilation output and the uploaded Call.Txt to trace the repeated avr-gcc-ar invocations in the compilation-script generation path. Confirm the single-call behavior with BlinkWithoutDelay on Windows 10, then verify that compilation still succeeds and the reported compilation time improves.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system, embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100