[Halld-offline] DEBUG, PROFILE, OPTIMIZE

David Lawrence davidl at jlab.org
Thu Feb 24 18:13:01 EST 2011


Hi Mark,

     I not married to a particular default. We've just seen multiple 
instances lately where the DEBUG version seems to not display the 
problem so it seemed appropriate to create DEBUG, PROFILE, and OPTIMIZE 
variables to mirror the -g -pg and -O compilers options respectively so 
we have more control over them. If the general consensus is to include 
some kind of mixing matrix when converting the make options to gcc 
options, I'm fine with that. Let's discuss it at the next offline 
meeting (but perhaps limit discussion time to 10 minutes :) ).

Regards,
-Dave

On 2/24/11 2:26 PM, Mark M. Ito wrote:
> Dave,
>
> Don't we want DEBUG=yes to turn off optimization (as it was before)? 
> You could still have OPTIMIZE over-ride this "DEBUG-only" default, but 
> I thought that optimization caused problems with source code 
> debugging. In other words, debug symbols with optimization is an 
> unusual combination.
>
>   -- Mark
>
>
> On 02/24/2011 08:45 AM, David Lawrence wrote:
>>
>> Hi All,
>>
>>     I just committed a change to BMS that decouples the debugging 
>> symbols, profiling, and optimization. One can now explicitly set the 
>> optimization using OPTIMIZE=X where X is the optimization level. It 
>> still defaults to 2. In order to turn on profiling, one now needs to 
>> add PROFILE=yes to the make command. Adding DEBUG=yes will now only 
>> turn on debugging symbols whereas previously, it also turned on 
>> profiling and turned off optimization.
>>
>>     If either DEBUG=yes or PROFILE=yes (or both) is specified, the 
>> output binaries will have a "_d" appended to their name as it has 
>> always been.
>>
>> Regards,
>> -Dave
>>
>> -------- Original Message --------
>> Subject: 	r7480 - trunk/sim-recon/src/BMS
>> Date: 	Thu, 24 Feb 2011 08:41:34 -0500
>> From: 	Hall-D.SVN.Repository at jlab.org
>> To: 	davidl at jlab.org, brash at pcs.cnu.edu, wolin at jlab.org, 
>> zisis at uregina.ca, mashephe at indiana.edu, remitche at indiana.edu, 
>> zihlmann at jlab.org, somov at jlab.org, staylor at jlab.org
>>
>>
>>
>> Author: davidl
>> Date: 2011-02-24 08:41:34 -0500 (Thu, 24 Feb 2011)
>> New Revision: 7480
>>
>> Modified:
>>     trunk/sim-recon/src/BMS/Makefile.common
>> Log:
>> Add PROFILE and OPTIMIZE flags to BMS to decouple the use of debugging symbols, profiling, and optimization.
>>
>>
>> _______________________________________________
>> Halld-offline mailing list
>> Halld-offline at jlab.org
>> https://mailman.jlab.org/mailman/listinfo/halld-offline
>
>
> _______________________________________________
> Halld-offline mailing list
> Halld-offline at jlab.org
> https://mailman.jlab.org/mailman/listinfo/halld-offline
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/halld-offline/attachments/20110224/072eff64/attachment-0002.html>


More information about the Halld-offline mailing list