[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-dev
Subject:    Re: [cfe-dev] Clangs equivalent to GCCs -Og flag?
From:       "Robinson, Paul" <Paul_Robinson () playstation ! sony ! com>
Date:       2015-07-31 14:27:00
Message-ID: E3B07FDB86BFF041819DC057DEED8FEABDC99B55 () USCULXMSG04 ! am ! sony ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

People ask about this from time to time, but we've never done anything about it.
One thing I noticed about GCC –Og is that it's 99% identical to their –O1.  I'd \
be curious about people's experience using Clang –O1 –g and whether that \
                experience is somewhere close to reasonable.
--paulr

From: cfe-dev-bounces@cs.uiuc.edu [mailto:cfe-dev-bounces@cs.uiuc.edu] On Behalf Of \
                David Blaikie
Sent: Wednesday, July 29, 2015 10:13 AM
To: Dan Walmsley; cfe-dev Developers
Subject: Re: [cfe-dev] Clangs equivalent to GCCs -Og flag?



On Wed, Jul 29, 2015 at 8:42 AM, Dan Walmsley \
<dan@walms.co.uk<mailto:dan@walms.co.uk>> wrote: Thanks,

    Perhaps there might be some documentation somewhere that would give me an idea of \
which optimizations to enable individually?

Not really - optimized debug info is still pretty lacking in Clang. Even the most \
common/basic optimizations (SROA, for example) are going to pretty heavily impact \
debuggability today.

- Dave


Dan
________________________________
Date: Wed, 29 Jul 2015 06:40:06 -0700
Subject: Re: [cfe-dev] Clangs equivalent to GCCs -Og flag?
From: dblaikie@gmail.com<mailto:dblaikie@gmail.com>
To: dan@walms.co.uk<mailto:dan@walms.co.uk>
CC: cfe-dev@cs.uiuc.edu<mailto:cfe-dev@cs.uiuc.edu>


On Jul 29, 2015 3:23 AM, "Dan Walmsley" <dan@walms.co.uk<mailto:dan@walms.co.uk>> \
wrote:
> 
> GCC has a debug level flag of -Og which enables all optimizers that won't degrade \
> the debugging experience greatly. 
> Does clang have an equivalent?

No, clang had no equivalent at this time.

> 
> Thanks in advance.
> 
> Dan
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev@cs.uiuc.edu<mailto:cfe-dev@cs.uiuc.edu>
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> 


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">People \
ask about this from time to time, but we've never done anything about \
it.<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">One \
thing I noticed about GCC –Og is that it's 99% identical to their –O1.&nbsp; I'd \
be curious about people's experience using Clang –O1 –g and whether that \
experience  is somewhere close to reasonable.<o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">--paulr<o:p></o:p></span></p>
 <p class="MsoNormal"><a name="_MailEndCompose"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></a></p>
 <div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> \
cfe-dev-bounces@cs.uiuc.edu [mailto:cfe-dev-bounces@cs.uiuc.edu] <b>On Behalf Of \
</b>David Blaikie<br> <b>Sent:</b> Wednesday, July 29, 2015 10:13 AM<br>
<b>To:</b> Dan Walmsley; cfe-dev Developers<br>
<b>Subject:</b> Re: [cfe-dev] Clangs equivalent to GCCs -Og \
flag?<o:p></o:p></span></p> </div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On Wed, Jul 29, 2015 at 8:42 AM, Dan Walmsley &lt;<a \
href="mailto:dan@walms.co.uk" target="_blank">dan@walms.co.uk</a>&gt; \
wrote:<o:p></o:p></p> <div>
<div>
<div>
<p class="MsoNormal">Thanks, <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp; Perhaps there might be some documentation \
somewhere that would give me an idea of which optimizations to enable \
individually?<o:p></o:p></p> </div>
</div>
</div>
<div>
<p class="MsoNormal"><br>
Not really - optimized debug info is still pretty lacking in Clang. Even the most \
common/basic optimizations (SROA, for example) are going to pretty heavily impact \
debuggability today.<br> <br>
- Dave<br>
&nbsp;<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in \
6.0pt;margin-left:4.8pt;margin-right:0in"> <div>
<div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Dan<o:p></o:p></p>
</div>
<div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="3" width="100%" align="center">
</div>
<p class="MsoNormal">Date: Wed, 29 Jul 2015 06:40:06 -0700<br>
Subject: Re: [cfe-dev] Clangs equivalent to GCCs -Og flag?<br>
From: <a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a><br>
To: <a href="mailto:dan@walms.co.uk" target="_blank">dan@walms.co.uk</a><br>
CC: <a href="mailto:cfe-dev@cs.uiuc.edu" \
target="_blank">cfe-dev@cs.uiuc.edu</a><o:p></o:p></p> <div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p>&nbsp;</o:p></p>
<p><br>
On Jul 29, 2015 3:23 AM, &quot;Dan Walmsley&quot; &lt;<a \
href="mailto:dan@walms.co.uk" target="_blank">dan@walms.co.uk</a>&gt; wrote:<br> \
&gt;<br> &gt; GCC has a debug level flag of -Og which enables all optimizers that \
won't degrade the debugging experience greatly.<br> &gt;<br>
&gt; Does clang have an equivalent?<o:p></o:p></p>
<p>No, clang had no equivalent at this time.<o:p></o:p></p>
<p>&gt;<br>
&gt; Thanks in advance.<br>
&gt;<br>
&gt; Dan<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; cfe-dev mailing list<br>
&gt; <a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
&gt; <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" \
target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br> \
&gt;<o:p></o:p></p> </div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>



_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

--===============1158272196852131224==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic