‑‑use_optimized_variants
Syntax
‑‑use_optimized_variants=[misaligned_]{no|auto|tiny|small|medium|fast}
Parameters
| Uses variants that are reliant on the device allowing misaligned memory accesses. This can, in some cases, make the code slightly faster or smaller. This prefix cannot be used with the parameter |
| Always uses the default variant with standard optimizations. The prefix |
| Uses variants based on runtime model attributes that indicate the requested optimization goal: If a module is compiled with If all modules referencing a function are compiled with This is the default behavior of the linker. |
| Always uses a tiny variant (minimum code size) if there is one in the DLIB library. |
| Always uses a small variant (balances code size and execution speed, favoring size) if there is one in the DLIB library. |
| Always uses a medium variant (balances code size and execution speed, favoring speed) if there is one in the DLIB library. |
| Always uses a fast variant (maximum execution speed) if there is one in the DLIB library. |
Description
Use this option to control the use of optimized variants of some DLIB library functions. (Some DLIB libraries delivered with the product contain optimized variants, in particular implementations of string.h functions and 64-bit integer functions.)
To see which variants that this option selected, inspect the list of redirects in the linker map file.
Caution
To set this option, use Project>Options>Linker>Extra Options.