The "-release" and "-boundscheck=off" command line switches

whileclove whileclove at gmail.com
Mon Dec 4 09:25:31 UTC 2023


On Monday, 26 June 2023 at 19:18:52 UTC, Cecil Ward wrote:
> Does "-release" imply "-boundscheck=off" automatically in LDC ?

In the LDC (LLVM-based D Compiler), the -release flag does not 
automatically imply the -boundscheck=off flag. These are separate 
compiler flags that control different aspects of the compilation 
process.

The -release flag is used to enable optimizations and generate 
optimized code for production-ready builds. It typically includes 
various optimizations like inlining, loop unrolling, and dead 
code elimination, among others. However, it does not specifically 
disable array bounds checking.
https://tunnelrun.io/home



More information about the digitalmars-d-ldc mailing list