Real-Time Workshop Embedded Coder | ![]() ![]() |
Target Floating Point Math Environment
This pop-up menu provides two options. If you select the ANSI_C
option (the default), the Real-Time Workshop Embedded Coder generates calls to the ANSI C (ANSI X3.159-1989) math library for floating-point functions. If you select the ISO_C
option, Real-Time Workshop Embedded Coder generates calls to the ISO C (ISO/IEC 9899:1999) math library wherever possible.
If your target compiler supports the ISO C (ISO/IEC 9899:1999) math library, we recommend selecting the ISO_C
option and setting your compiler's ISO C option. This will generate calls to the ISO C functions wherever possible (for example, sqrtf()
instead of sqrt()
for single precision data) and ensure that you obtain the best performance your target compiler offers.
If your target compiler does not support ISO C math library functions, use the ANSI_C
option.
![]() | Suppress Error Status in Real-Time Model Data Structure | Custom Storage Classes | ![]() |