Question
Prevent heap usage with IAR
Posted on January 19, 2017 at 01:28
The Keil uVision IDE/compiler chain has a `&sharppragma` for preventing heap usage; see
http://www.keil.com/support/man/docs/armlib/armlib_chr1358938927854.htm
. 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?#iar #heap