<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/App_Themes/default/rss.xslt"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Comment Feed for Russell Hadley: The Route to C++ Code Optimization (Going Deep on Channel 9)</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/shows/going+deep/russell-hadley-the-route-to-c-code-optimization/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Comment Feed for Russell Hadley: The Route to C++ Code Optimization (Going Deep on Channel 9)</title><link>http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/</link></image><description>Russell Hadley: The Route to C++ Code Optimization</description><link>http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/</link><language>en-us</language><pubDate>Tue, 03 Jun 2008 13:20:03 GMT</pubDate><lastBuildDate>Tue, 03 Jun 2008 13:20:03 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3608.3122, Culture=neutral, PublicKeyToken=null)</generator><item><title>Re: Russell Hadley: The Route to C++ Code Optimization</title><description>cool !&lt;br&gt;</description><comments></comments><link>http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=407346</link><pubDate>Tue, 03 Jun 2008 13:20:03 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=407346</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/407346/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>cool !</evnet:previewtext><dc:creator>Grzegorz K</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/407346/Trackback.aspx</trackback:ping></item><item><title>Re: Russell Hadley: The Route to C++ Code Optimization</title><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;dancmarinescu wrote:&lt;/div&gt;&lt;div&gt;﻿the wole interview is "technically" offensive (we're not all a bunch of&amp;nbsp;goofy/ms certified&amp;nbsp;end users)&lt;BR&gt;&lt;BR&gt;they called by "front end developer" the actual programmer (writing 3rd generation source code) ?!?&lt;BR&gt;&lt;BR&gt;i believe that interviews like this one are not mean to help microsoft's image in any way (poor backend r&amp;amp;d guy would almost lough at the questions, poor guy... :-)&lt;BR&gt;&lt;BR&gt;anyway, you do what you gotta do, and we'll do what we gotta do 2!&lt;BR&gt;&lt;BR&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;BR&gt;&lt;BR&gt;???&lt;BR&gt;&lt;BR&gt;Whatever....&lt;BR&gt;C</description><comments></comments><link>http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=405434</link><pubDate>Sun, 25 May 2008 06:42:19 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=405434</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/405434/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>dancmarinescu wrote:﻿the wole interview is "technically" offensive (we're not all a bunch of&amp;nbsp;goofy/ms certified&amp;nbsp;end users)they called by "front end developer" the actual programmer (writing 3rd generation source code) ?!?i believe that interviews like this one are not mean to help&amp;#8230;</evnet:previewtext><dc:creator>Charles</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/405434/Trackback.aspx</trackback:ping></item><item><title>Re: Russell Hadley: The Route to C++ Code Optimization</title><description>the wole interview is "technically" offensive (we're not all a bunch of&amp;nbsp;goofy/ms certified&amp;nbsp;end users)&lt;BR&gt;&lt;BR&gt;they called by "front end developer" the actual programmer (writing 3rd generation source code) ?!?&lt;BR&gt;&lt;BR&gt;i believe that interviews like this one are not mean to help microsoft's image in any way (poor backend r&amp;amp;d guy would almost lough at the questions, poor guy... :-)&lt;BR&gt;&lt;BR&gt;anyway, you do what you gotta do, and we'll do what we gotta do 2!&lt;BR&gt;&lt;BR&gt;</description><comments></comments><link>http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=405384</link><pubDate>Sat, 24 May 2008 22:42:51 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=405384</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/405384/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>the wole interview is "technically" offensive (we're not all a bunch of&amp;nbsp;goofy/ms certified&amp;nbsp;end users)they called by "front end developer" the actual programmer (writing 3rd generation source code) ?!?i believe that interviews like this one are not mean to help microsoft's image in any way&amp;#8230;</evnet:previewtext><dc:creator>dancmarinescu</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/405384/Trackback.aspx</trackback:ping></item><item><title>Re: Russell Hadley: The Route to C++ Code Optimization</title><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;Charles wrote:&lt;/div&gt;&lt;div&gt;﻿&lt;br&gt;You will see a C++ Expert to Expert interview on C9 in addition to the more broadly-scoped conversations.&lt;br&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;&lt;br&gt;Yay! This was an awesome interview btw, and I'd definitely like to see more of these going deep interviews in the near future.&lt;br&gt;&lt;br&gt;Cheers&lt;br&gt;</description><comments></comments><link>http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=405308</link><pubDate>Sat, 24 May 2008 15:06:48 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=405308</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/405308/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Charles wrote:﻿You will see a C++ Expert to Expert interview on C9 in addition to the more broadly-scoped conversations.Yay! This was an awesome interview btw, and I'd definitely like to see more of these going deep interviews in the near future.Cheers</evnet:previewtext><dc:creator>evildictaitor</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/405308/Trackback.aspx</trackback:ping></item><item><title>Re: Russell Hadley: The Route to C++ Code Optimization</title><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;Sniffy wrote:&lt;/div&gt;&lt;div&gt;﻿It would be nice if the interviewer was an actual C++ programmer.&amp;nbsp; The interview is at too high a level for me, I've known that the compiler produces .obj's that get linked by the linker for quite awhile now.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;BR&gt;&lt;BR&gt;That's a good point. This is precisely why we created the Expert to Expert series. In this case, we wanted to reach as broad of a programmer audience as possible since C++ is only one programming language that gets compiled (the information here is not just relevant to C++ after all - note the conversation on what the .NET JIT does, etc).&lt;BR&gt;&lt;BR&gt;I'm a generalist and we feel this is the best way to have deep, though broadly interesting, technical conversations.&lt;BR&gt;&lt;BR&gt;You will see a C++ Expert to Expert interview on C9 in addition to the more broadly-scoped conversations.&lt;BR&gt;&lt;BR&gt;Thanks,&lt;BR&gt;C</description><comments></comments><link>http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=405208</link><pubDate>Fri, 23 May 2008 21:50:48 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=405208</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/405208/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Sniffy wrote:﻿It would be nice if the interviewer was an actual C++ programmer.&amp;nbsp; The interview is at too high a level for me, I've known that the compiler produces .obj's that get linked by the linker for quite awhile now.That's a good point. This is precisely why we created the Expert to&amp;#8230;</evnet:previewtext><dc:creator>Charles</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/405208/Trackback.aspx</trackback:ping></item><item><title>Re: Russell Hadley: The Route to C++ Code Optimization</title><description>It would be nice if the interviewer was an actual C++ programmer.&amp;nbsp; The interview is at too high a level for me, I've known that the compiler produces .obj's that get linked by the linker for quite awhile now.</description><comments></comments><link>http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=405191</link><pubDate>Fri, 23 May 2008 19:58:47 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=405191</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/405191/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>It would be nice if the interviewer was an actual C++ programmer.&amp;nbsp; The interview is at too high a level for me, I've known that the compiler produces .obj's that get linked by the linker for quite awhile now.</evnet:previewtext><dc:creator>Sniffy</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/405191/Trackback.aspx</trackback:ping></item><item><title>Re: Russell Hadley: The Route to C++ Code Optimization</title><description>&lt;P&gt;Hi! &lt;BR&gt;&lt;BR&gt;You bring up a good point.&amp;nbsp; Because we generate code&amp;nbsp;with this sequential translation approach there are times when some optimization transformations expose new opportunities.&amp;nbsp; In general we call this the "Phase Ordering Problem".&amp;nbsp; The traditional approach (what we do) is to re-run the transformations that are profitable when there's compiler throughput budget to do it. (of course we can't iterate forever in addition some of the problems won’t converge)&lt;BR&gt;&lt;BR&gt;For the predicted cycles (and code size) of a particular instruction we typically start getting a rough idea at lower time when we select a machine opcode.&amp;nbsp; This becomes more concrete through register allocation and becomes very concrete in compiler terms at encoding time.&amp;nbsp; The compiler selected instruction has a processor defined cost in terms of machine resources (e.g. execution elements or slots in the out of order buffer) which are fixed but then data dependencies – is the input value available at the right time or schedule - and micro-architectural issues intrude.&amp;nbsp; Finally as you say the cache trumps the other issues.&amp;nbsp; I think it’s important to note here that we’re getting new machines all the time with different micro-architectures, in fact much more quickly than new compilers, and the compiler needs to try and make a single executable that gives good performance across a spectrum of machines. &amp;nbsp;So some of the instruction performance characteristics are hard to know ahead of time.&amp;nbsp; Of course we work closely with our partners to make sure that future machines provide good performance for Microsoft apps and tools output.&amp;nbsp; Finally, with respect to predictability, if you know the machine, it’s micro-arch, the working set, and execution environment (OS and workload) theoretically you can predict exactly the performance (digital computer after all) but in actuality we model a “typical” case, maintain good engineering, and then do lots of benchmarking on real world scenarios to ensure the performance of our output code.&lt;/P&gt;</description><comments></comments><link>http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=405150</link><pubDate>Fri, 23 May 2008 17:38:06 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=405150</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/405150/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hi! You bring up a good point.&amp;nbsp; Because we generate code&amp;nbsp;with this sequential translation approach there are times when some optimization transformations expose new opportunities.&amp;nbsp; In general we call this the "Phase Ordering Problem".&amp;nbsp; The traditional approach (what we do) is to&amp;#8230;</evnet:previewtext><dc:creator>rhadley</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/405150/Trackback.aspx</trackback:ping></item><item><title>Re: Russell Hadley: The Route to C++ Code Optimization</title><description>Thank you for this great interview, i love watching this stuff. It would be interessting when microsoft starts using the new compiler on real world products like windows, office or the .net framework. Also it would be interessting how much faster the new code will run compared to the old code.</description><comments></comments><link>http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=405091</link><pubDate>Fri, 23 May 2008 10:47:17 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=405091</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/405091/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Thank you for this great interview, i love watching this stuff. It would be interessting when microsoft starts using the new compiler on real world products like windows, office or the .net framework. Also it would be interessting how much faster the new code will run compared to the old code.</evnet:previewtext><dc:creator>berni</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/405091/Trackback.aspx</trackback:ping></item><item><title>Re: Russell Hadley: The Route to C++ Code Optimization</title><description>Is the flow through phases always down? I'm thinking flow would be kicked back up because of failed optimizations, re-optimization opportunities, resource overflow, hardware target feedback, etc?&lt;br&gt;&lt;br&gt;Excluding cache factors, at what point can you know how many actual cycles or microseconds an operation takes? Is predicted performance always accurate? If not, what situations foul up predictions? Are there situations where performance is non-determinable?&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><comments></comments><link>http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=404694</link><pubDate>Wed, 21 May 2008 14:55:26 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=404694</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/404694/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Is the flow through phases always down? I'm thinking flow would be kicked back up because of failed optimizations, re-optimization opportunities, resource overflow, hardware target feedback, etc?Excluding cache factors, at what point can you know how many actual cycles or microseconds an operation&amp;#8230;</evnet:previewtext><dc:creator>BSalita</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/404694/Trackback.aspx</trackback:ping></item><item><title>Re: Russell Hadley: The Route to C++ Code Optimization</title><description>&lt;P&gt;Excellent interview as always, it's great to see more of the C++ team. &lt;/P&gt;
&lt;P&gt;I thought Charles read my mind here, as I was just thinking that it would be great to have some videos covering optimization.&lt;/P&gt;
&lt;P&gt;If there were any more videos on this theme I would be interested to know about what C++ code is difficult to optimize and how we should best write C++ to give the optimizer the most help we can about the semantics of our code, perhaps covering __assume et al?&lt;/P&gt;
&lt;P&gt;Thanks for another great In-Deep look into C++&lt;/P&gt;</description><comments></comments><link>http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=404649</link><pubDate>Wed, 21 May 2008 09:46:34 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=404649</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/404649/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Excellent interview as always, it's great to see more of the C++ team. 
I thought Charles read my mind here, as I was just thinking that it would be great to have some videos covering optimization.
If there were any more videos on this theme I would be interested to know about what C++ code is&amp;#8230;</evnet:previewtext><dc:creator>OliverTaylor</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/404649/Trackback.aspx</trackback:ping></item><item><title>Re: Russell Hadley: The Route to C++ Code Optimization</title><description>I was thinking during that video how depressing it was that my job will never be as cool as his.&amp;nbsp; I felt like at the end you just wanted to stick it to me :P.&lt;br&gt;</description><comments></comments><link>http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=404621</link><pubDate>Wed, 21 May 2008 04:12:29 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/shows/Going+Deep/Russell-Hadley-The-Route-to-C-Code-Optimization/?CommentID=404621</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/404621/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I was thinking during that video how depressing it was that my job will never be as cool as his.&amp;nbsp; I felt like at the end you just wanted to stick it to me :P.</evnet:previewtext><dc:creator>obrienslalom</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/404621/Trackback.aspx</trackback:ping></item></channel></rss>