docs(cplusplus): remove the limitation on IRAM_ATTR for templates

The issue has been fixed since GCC 14.

Related to https://github.com/espressif/esp-idf/issues/4542
This commit is contained in:
Ivan Grokhotkov
2025-07-18 14:16:25 +08:00
parent 5812b19e91
commit 5b71cc29bd
2 changed files with 0 additions and 2 deletions

View File

@@ -200,7 +200,6 @@ Limitations
----------- -----------
- Linker script generator does not support function level placements for functions with C++ linkage. - Linker script generator does not support function level placements for functions with C++ linkage.
- Various section attributes (such as ``IRAM_ATTR``) are ignored when used with template functions.
- Vtables are placed into Flash and are not accessible when the flash cache is disabled. Therefore, virtual function calls should be avoided in :ref:`iram-safe-interrupt-handlers`. Placement of Vtables cannot be adjusted using the linker script generator, yet. - Vtables are placed into Flash and are not accessible when the flash cache is disabled. Therefore, virtual function calls should be avoided in :ref:`iram-safe-interrupt-handlers`. Placement of Vtables cannot be adjusted using the linker script generator, yet.

View File

@@ -200,7 +200,6 @@ ESP-IDF 支持 ``iostream`` 功能,但应注意:
----------- -----------
- 链接脚本生成器不支持将具有 C++ 链接的函数单独放置在内存的特定位置。 - 链接脚本生成器不支持将具有 C++ 链接的函数单独放置在内存的特定位置。
- 当与模板函数一起使用时,会忽略各种节属性(例如 ``IRAM_ATTR``)。
- vtable 位于 flash 中,在禁用 flash 缓存时无法访问。因此,在 :ref:`iram-safe-interrupt-handlers` 中应避免调用虚拟函数。目前尚无法使用链接器脚本生成器调整 vtable 的放置位置。 - vtable 位于 flash 中,在禁用 flash 缓存时无法访问。因此,在 :ref:`iram-safe-interrupt-handlers` 中应避免调用虚拟函数。目前尚无法使用链接器脚本生成器调整 vtable 的放置位置。