AnsweredAssumed Answered

Prevent heap usage with IAR

Question asked by Dennis Jackson on Jan 19, 2017
Latest reply on Jun 24, 2017 by Dennis Jackson

The Keil uVision IDE/compiler chain has a `#pragma` for preventing heap usage; see Libraries and Floating Point Support Guide: Avoiding the heap and heap-using library functions supplied by ARM. The great thing about this is that the linker fails if anyone (or a library) attempts to use the heap.  I've searched through the IAR documentation and haven't seen an equivalent method of preventing inadvertent heap usage.  I've looked at the linker options as well.  Is there a way to prevent compiling/linking if a routine tries to use the heap with the IAR toolchain?