-inline switch changes code behaviour

2014-08-23 Thread francesco cattoglio via Digitalmars-d-learn
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 
execution.
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?


Re: -inline switch changes code behaviour

2014-08-23 Thread Vladimir Panteleev via Digitalmars-d-learn
On Saturday, 23 August 2014 at 17:44:41 UTC, francesco cattoglio 
wrote:

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