Closed jjsuwa-sys3175 closed 3 years ago
@jjsuwa-sys3175 I was wondering if these make any difference in this specific build?
We don't do any final links in the toolchain. We just compile object files and then combine them into a .a
in a non-GCC step.
My reading of the gcc man pages leads me to believe these are done only during a linking pass (and thus won't be executed here)...
CFLAGS_FOR_TARGET
/ CXXFLAGS_FOR_TARGET
envvals affect compiling target (Xtensa) libraries indeed.
as an example, here it is diff -u3
of objdump -d libgcc.a
between without -free -fipa-pta
and with ones; a few insns are eliminated.
-free -fipa-pta
to GCC options (generates a bit smaller binary)see https://github.com/arendst/Tasmota/pull/9749 and https://github.com/arendst/Tasmota/commit/e7cff928eef1f875819430f98e2b896b16b05b9b.