Page 3 of 4

Re: Compile time so slow

Posted: Tue Jun 15, 2021 12:36 pm
by madhavan
hi,

what is solution to use stmduino Fast compiling in arduino 1.8.15 with windows 10 ? it will happen near feature ? .

Re: Compile time so slow

Posted: Tue Jun 15, 2021 12:44 pm
by mlundin
One thing that might help is to make sure the Preferences Show detaild (Build) information are unchecked.
Otherwise even for files that are prebuilt one line of information about not recompiling is printed

Re: Compile time so slow

Posted: Tue Jun 15, 2021 12:57 pm
by fpiSTM
madhavan wrote: Tue Jun 15, 2021 12:36 pm hi,

what is solution to use stmduino Fast compiling in arduino 1.8.15 with windows 10 ? it will happen near feature ? .
This subject has been covered several time. It is linked to Arduino IDE and the way it manage the build, network access and Antivirus...
If you want build faster you should use Linux... It builds in few seconds depending of your machine while on Windows it builds in several minutes. :x

Re: Compile time so slow

Posted: Tue Jun 15, 2021 2:51 pm
by mrburnette
fpiSTM wrote: Tue Jun 15, 2021 12:57 pm ...
If you want build faster you should use Linux... It builds in few seconds depending of your machine while on Windows it builds in several minutes. :x
+1

... but Win-10 can be "tuned" to compile faster.

https://www.windowscentral.com/how-excl ... irus-scans
and
https://docs.microsoft.com/en-us/micros ... -worldwide

The Internet is full of (being nice) suggestions... even using RAM drives to speed compiles and linking by moving \temp, \tmp off of root.
https://www.youtube.com/watch?v=_xNjcR5yb7A&t=58s
-- and ---
https://duckduckgo.com/?q=create+ram+di ... +10&ia=web

Re: Compile time so slow

Posted: Tue Jun 15, 2021 3:08 pm
by ag123
madhavan wrote: Tue Jun 15, 2021 12:36 pm hi,

what is solution to use stmduino Fast compiling in arduino 1.8.15 with windows 10 ? it will happen near feature ? .
accordingly if you are willing to try arduino-cli
https://arduino.github.io/arduino-cli/l ... i_compile/
it has:

Code: Select all

 --build-cache-path string      Builds of 'core.a' are saved into this path to be cached and reused.
no one knows if it'd work with stm32duino, but if you want to reduce compile times, then you'd need to experiment.

arduino-cli is also the 'compiler driver' for IDE 2.0, VS Code and various other 'IDE's so you may like to check that out.
using core.a could result in *fatter* binaries, so it is a tradeoff kind of.

Re: Compile time so slow

Posted: Tue Jun 15, 2021 3:31 pm
by fpiSTM
Arduino IDE used arduino-cli and the cache under the hood. That's why the first compile is much long than the next ones.

Re: Compile time so slow

Posted: Tue Jun 15, 2021 3:45 pm
by ag123
i've been thinking about using stm32cube ide (it is eclipse really) to build stm32duino (including libmaple) sketches.
i've makefiles (in linux) so that's less of a problem for me. But there may be some bummers in Windows with makefiles.
for now on Windows the 'cross platform' solution is perhaps arduino-cli as close as it gets.

there are probably 'better' build automation solutions (normally consider 'part' of IDE), but i've not explored them as well, e.g. gradle which is java based.
https://github.com/zhurlik/gradle-arduino-plugin
https://github.com/jfklingler/gradle-arduino

Re: Compile time so slow

Posted: Tue Jun 15, 2021 11:36 pm
by mrburnette
ag123 wrote: Tue Jun 15, 2021 3:45 pm ...
there are probably 'better' build automation solutions (normally consider 'part' of IDE), but i've not explored them as well...
WHY? I just do not understand.

History: The "duino" in STM32duino.com has always been representative of Arduino and the design/implementation of the underpinnings to allow the ArduinoIDE to create a somewhat seamless environment for developing STM32 code, link, and uploading for STM32 boards.

Everyone should know (or should be told) that ArduinoIDE is a non-professional development system: capable of generating professional code but within a somewhat limiting IDE.

IMO: if people do not like the Frankenstein'ish JAVA-based & OS-centric scripting ArduinoIDE system, they have numerous options: many better but with perhaps a learning curve. The limitations of Arduino IDE are many, but forum posters who complain about issues outside STM's cores are beating a dead horse ... even Arduino is moving to a completely different architecture for the 2.x IDE which is in beta and significantly slower at this time likely due to debugging code and logfiles.

Re: Compile time so slow

Posted: Wed Jun 16, 2021 12:58 am
by dannyf
the answer depends on what you mean by "slow".

I am using a 10-year old workstation and it flies - speed is never a concern for me.

I also use sublime, Keil or IAR. But my favorite is CoIDE - no longer available. Again, speed is never a concern regardless.

Re: Compile time so slow

Posted: Wed Jun 16, 2021 1:18 am
by mrburnette
dannyf wrote: Wed Jun 16, 2021 12:58 am the answer depends on what you mean by "slow".
...
+1

I never buy new ... refurb stuff from corporate leases has been good for me. My Linux dev box is 6 years old: I did put in a 1T 7200RPM WD drive which is better than the old SSD the unit came with.
I have a 4 year old Dell running W10_Pro_64 ... slower compiles than Linux, but certainly not slow! I do not have time to get up and walk to the printer before the compile/link/upload is complete.

Slow was the mid-70's at Uni when my Fortran was punched, submitted as a card-deck, and the greenbar was "maybe" available the next morning.