Compiler Arguments and Switches

MM MM_member at pathlink.com
Mon Jun 19 15:56:01 PDT 2006


>
>This can improve execution speed a lot, as the overhead of calling the 
>little function disappears.  The biggest speed difference would be if you 
>called the function a lot of times; inlining it really speeds things up.
>

I thought -O would do this already. But thanks, I'll use that too then :) 

>> I also don't really get the profiling part, but let me first read that a 
>> bit
>> more thoroughly :)
>
>It's really handy.  You can turn on profiling, and when you run your 
>program, it'll generate a profile log, which shows how many times every 
>function was called, how long each function takes to execute (on average), 
>and a bunch of other stuff.  Using that information, you can see which 
>functions you probably need to work on speeding up (and which ones you don't 
>that you thought were a bottleneck but really aren't!). 
>
That is really handy!! I'll check that out.





More information about the Digitalmars-d-learn mailing list