<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Hi Mark,<br>
<br>
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 :) ).<br>
<br>
Regards,<br>
-Dave<br>
<br>
On 2/24/11 2:26 PM, Mark M. Ito wrote:
<blockquote cite="mid:4D66B0F2.2060505@jlab.org" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
Dave,<br>
<br>
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.<br>
<br>
-- Mark<br>
<br>
<br>
On 02/24/2011 08:45 AM, David Lawrence wrote:
<blockquote cite="mid:4D666104.9070202@jlab.org" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<br>
Hi All,<br>
<br>
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.<br>
<br>
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.<br>
<br>
Regards,<br>
-Dave<br>
<br>
-------- Original Message --------
<table class="moz-email-headers-table" border="0"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
</th>
<td>r7480 - trunk/sim-recon/src/BMS</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date:
</th>
<td>Thu, 24 Feb 2011 08:41:34 -0500</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">From:
</th>
<td><a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:Hall-D.SVN.Repository@jlab.org">Hall-D.SVN.Repository@jlab.org</a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
<td><a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:davidl@jlab.org">davidl@jlab.org</a>, <a
moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:brash@pcs.cnu.edu">brash@pcs.cnu.edu</a>,
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:wolin@jlab.org">wolin@jlab.org</a>, <a
moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:zisis@uregina.ca">zisis@uregina.ca</a>, <a
moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:mashephe@indiana.edu">mashephe@indiana.edu</a>,
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:remitche@indiana.edu">remitche@indiana.edu</a>,
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:zihlmann@jlab.org">zihlmann@jlab.org</a>,
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:somov@jlab.org">somov@jlab.org</a>, <a
moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:staylor@jlab.org">staylor@jlab.org</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>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.
</pre>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Halld-offline mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Halld-offline@jlab.org">Halld-offline@jlab.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://mailman.jlab.org/mailman/listinfo/halld-offline">https://mailman.jlab.org/mailman/listinfo/halld-offline</a></pre>
</blockquote>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Halld-offline mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Halld-offline@jlab.org">Halld-offline@jlab.org</a>
<a class="moz-txt-link-freetext" href="https://mailman.jlab.org/mailman/listinfo/halld-offline">https://mailman.jlab.org/mailman/listinfo/halld-offline</a></pre>
</blockquote>
</body>
</html>