Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By matkar
#21501 Hi,
I'm trying to figure out why my PC takes so long to compile ESP8266 project in Arduino environment. With a simple
Code: Select allvoid setup() {
  // put your setup code here, to run once:
}
void loop() {
  // put your main code here, to run repeatedly:
}

it takes a few minutes to compile. I have read http://tech.scargill.net/an-esp8266-for ... e-changer/ article where only one second took to compile a very simple sketch.

By checking the compile output I see some previously compiled files are used but there is alot of files that surely haven't cjhanged and are compiled anyway:
Code: Select allC:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697/tools/sdk//include -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10604 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 -IC:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\cores\esp8266 -IC:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\variants\generic C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\sketch_jun24b.cpp -o C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\sketch_jun24b.cpp.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-gcc -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697/tools/sdk//include -c -g -x assembler-with-cpp -MMD -DF_CPU=80000000L -DARDUINO=10604 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 -IC:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\cores\esp8266 -IC:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\variants\generic C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\cores\esp8266\cont.S -o C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\cont.S.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\cont_util.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_noniso.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_si2c.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_timer.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_wiring.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_wiring_analog.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_wiring_digital.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_wiring_pulse.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_wiring_pwm.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_wiring_shift.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\libc_replacements.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\spiffs_cache.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\spiffs_check.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\spiffs_esp8266.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\spiffs_gc.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\spiffs_hydrogen.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\spiffs_nucleus.c.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\abi.cpp.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_main.cpp.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\debug.cpp.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\Esp.cpp.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\FileSystem.cpp.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\HardwareSerial.cpp.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\IPAddress.cpp.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\pgmspace.cpp.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\Print.cpp.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\Stream.cpp.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\Tone.cpp.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\WMath.cpp.o
Using previously compiled file: C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\WString.cpp.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\cont.S.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\cont_util.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_noniso.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_si2c.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_timer.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_wiring.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_wiring_analog.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_wiring_digital.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_wiring_pulse.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_wiring_pwm.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_wiring_shift.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\libc_replacements.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\spiffs_cache.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\spiffs_check.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\spiffs_esp8266.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\spiffs_gc.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\spiffs_hydrogen.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\spiffs_nucleus.c.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\abi.cpp.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\core_esp8266_main.cpp.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\debug.cpp.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\Esp.cpp.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\FileSystem.cpp.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\HardwareSerial.cpp.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\IPAddress.cpp.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\pgmspace.cpp.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\Print.cpp.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\Stream.cpp.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\Tone.cpp.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\WMath.cpp.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-ar cru C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\WString.cpp.o
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-gcc -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static -LC:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697/tools/sdk//lib -LC:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697/tools/sdk//ld -Teagle.flash.512k.ld -o C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/sketch_jun24b.cpp.elf -Wl,--start-group C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp\sketch_jun24b.cpp.o C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/core.a -lm -lgcc -lhal -lphy -lnet80211 -llwip -lwpa -lmain -lpp -lsmartconfig -Wl,--end-group -LC:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp
C:\Documents and Settings\Owner\Application Data\Arduino15\packages\esp8266\tools\esptool\0.4.4/esptool.exe -eo C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/sketch_jun24b.cpp.elf -bo C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/sketch_jun24b.cpp_00000.bin -bm qio -bf 40 -bz 512K -bs .text -bs .data -bs .rodata -bc -ec -eo C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/sketch_jun24b.cpp.elf -es .irom0.text C:\DOCUME~1\Owner\LOCALS~1\Temp\build5568413416595448695.tmp/sketch_jun24b.cpp_10000.bin -ec

Sketch uses 197,372 bytes (37%) of program storage space. Maximum is 524,288 bytes.


I have Win XP 32 with 4GB RAM, 2.9GHz dual core pentium and Arduino 1.6.4. Currently 2GB are used and CPu usage is at 20%.

I have also checked with compile times for Arduino nano platform and the same happens there. Previously I had Arduino 1.6.1 installed before upating to 1.64. I used it only once at that time but as far as I can remember it compiled normally before.
I'd really like to sort this out since it's very time consumming to make anything with current latencies.

Any suggestions are much appreciated,

Regards,
Mat
User avatar
By matkar
#21520 I haven't fugure out what the problem was but a system reboot helped. I rarely restart my computer so it might have been a bit clogged :). Now it compiles WifiAccessPoint example in 15 seconds on XP once the sketch has been already previously compiled.
I installed the programming environment on Win7 partition (same PC) as well and it compiles the same example in 2.5 seconds. Empty project compiles in 2 seconds. I imagine with a SSD one second compile time would be possible.