www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - -inline switch changes code behaviour

reply "francesco cattoglio" <francesco.cattoglio gmail.com> writes:
Today I just realized that in DMD optimize flag does not imply 
inlining, therefore I promptly added the "inline" to my dub build 
settings and recompiler, expecting to see speedups in my code 
To my surprise, I could not see anything at all: all that I get 
now is a blank screen.

The rendering code uses an old-ish version of gfm-sdl, but I did 
not find any issue related to compiler swirches.
Any idea about what might be happening/any suggestion on how to 
debug this?
Aug 23 2014
parent "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Saturday, 23 August 2014 at 17:44:41 UTC, francesco cattoglio 
 any suggestion on how to debug this?
If you can write a script which can compare the behavior of two builds of your program to return 0 if they differ or 1 if they are identical, you could plug it into DustMite. Write a test script which builds your project with and without -inline, and compares the output. DustMite would then reduce it to the smallest program the output of which differs depending on whether it was built with -inline. https://github.com/CyberShadow/DustMite/wiki
Aug 23 2014