1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

optionally move float emulation code into iram (#8958)

* optionally move float emulation code into iram
allows doing float operation in iram
suitable for libraries like AccelStepper when called from ISR
* proposed changes for pio from @mcspr
This commit is contained in:
david gauchard
2023-11-12 23:53:39 +01:00
committed by GitHub
parent 74c04c88c5
commit d0f7293491
7 changed files with 201 additions and 9 deletions

View File

@ -142,6 +142,16 @@ SECTIONS
/* all functional callers are placed in IRAM (including SPI/IRQ callbacks/etc) here */
*(.text._ZNKSt8functionIF*EE*) /* std::function<any(...)>::operator()() const */
#ifdef FP_IN_IRAM
*libgcc.a:*f2.o(.literal .text)
*libgcc.a:*f3.o(.literal .text)
*libgcc.a:*fsi.o(.literal .text)
*libgcc.a:*fdi.o(.literal .text)
*libgcc.a:*ifs.o(.literal .text)
*libgcc.a:*idf.o(.literal .text)
#endif
} >iram1_0_seg :iram1_0_phdr
.irom0.text : ALIGN(4)