<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>JIT, NGen, and other Managed Code Generation Stuff - All Comments</title><link>http://blogs.msdn.com/b/clrcodegeneration/</link><description /><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Array Bounds Check Elimination in the CLR</title><link>http://blogs.msdn.com/b/clrcodegeneration/archive/2009/08/13/array-bounds-check-elimination-in-the-clr.aspx#10402947</link><pubDate>Sun, 17 Mar 2013 01:59:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10402947</guid><dc:creator>Ondrej Petrzilka</dc:creator><description>&lt;p&gt;I miss one piece of information, this will make bound checks on x86:&lt;/p&gt;
&lt;p&gt;for(int i = 0; i &amp;lt; array.Length; i++)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;array[i] = MyMethod(i); &lt;/p&gt;
&lt;p&gt;However this won&amp;#39;t:&lt;/p&gt;
&lt;p&gt;for(int i = 0; i &amp;lt; array.Length; i++)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;MyMethod(out array[i], i);&lt;/p&gt;
&lt;p&gt;I guess problem is that &amp;quot;i&amp;quot; variable is on stack when MyMethod is called in first example, however in second example, it&amp;#39;s not on stack (only it&amp;#39;s copy is), so it&amp;#39;s safe to skip bound check.&lt;/p&gt;
&lt;p&gt;In second example, when &amp;quot;i&amp;quot; is changed when running MyMethod, it&amp;#39;s ok, because it&amp;#39;s incremented and checked (by loop check), before being used as array index.&lt;/p&gt;
&lt;p&gt;Great article!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10402947" width="1" height="1"&gt;</description></item><item><title>re: Improvements to NGen in .NET Framework 4</title><link>http://blogs.msdn.com/b/clrcodegeneration/archive/2009/05/03/improvements-to-ngen-in-.net-framework-4.aspx#10369581</link><pubDate>Sat, 17 Nov 2012 23:34:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10369581</guid><dc:creator>sonic7777</dc:creator><description>&lt;p&gt;Just need to run I think the above command and that makes the image for ngen 2.0 to run in 4.0.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10369581" width="1" height="1"&gt;</description></item><item><title>re: Improvements to NGen in .NET Framework 4</title><link>http://blogs.msdn.com/b/clrcodegeneration/archive/2009/05/03/improvements-to-ngen-in-.net-framework-4.aspx#10369580</link><pubDate>Sat, 17 Nov 2012 23:32:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10369580</guid><dc:creator>Sonic</dc:creator><description>&lt;p&gt;So do I run the command &amp;quot;%WINDIR%\Microsoft.NET\Framework\v4.0.xxxxx\ngen.exe install &amp;lt;2.0 assembly&amp;gt; &amp;quot; to make netframework 2.0 applications run in net framework 4.0? I have a chipset driver that installed (intel) and it targets the ngen 2.0 which is now disabled after update to 4.0. I want to ensure that my applications and drivers will run properly in ngen4.0. &lt;/p&gt;
&lt;p&gt;I think you reboot afterwards but I am not sure if this above command is right. If I run this or another command do I need to change ngen2.0 to manual? It&amp;#39;s disabled.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10369580" width="1" height="1"&gt;</description></item><item><title>re: NGen: Measuring Working Set with VMMap</title><link>http://blogs.msdn.com/b/clrcodegeneration/archive/2010/04/27/ngen-measuring-working-set-with-vmmap.aspx#10362179</link><pubDate>Tue, 23 Oct 2012 21:23:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10362179</guid><dc:creator>Jamal</dc:creator><description>&lt;p&gt;I am using .NET 3.5 and my application uses 290 MB of Working Set (10 MB managed heap) when one instance of app is deployed. When two instances of the same app are deployed it takes 390 MB of heap for each instance. Will the NGEN technology help reduce the memory footprint of the apps in this case. Particularly if we have 10 different apps deployed in the same machine.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10362179" width="1" height="1"&gt;</description></item><item><title>re: NGen: Getting Started with NGen in Visual Studio</title><link>http://blogs.msdn.com/b/clrcodegeneration/archive/2010/04/27/ngen-getting-started-with-ngen-in-visual-studio.aspx#10360842</link><pubDate>Thu, 18 Oct 2012 14:59:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10360842</guid><dc:creator>Jeff O</dc:creator><description>&lt;p&gt;Our app has some 30 accompanying DLLs, so of which are 3rd party supplied. &amp;nbsp;Can nGen be used on this type of solution? &amp;nbsp;How would one go about creating the file NI images for an application like this?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10360842" width="1" height="1"&gt;</description></item><item><title>re: NGen: Getting Started with NGen in Visual Studio</title><link>http://blogs.msdn.com/b/clrcodegeneration/archive/2010/04/27/ngen-getting-started-with-ngen-in-visual-studio.aspx#10292538</link><pubDate>Wed, 11 Apr 2012 05:43:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10292538</guid><dc:creator>crazy</dc:creator><description>&lt;p&gt;hi ..&lt;/p&gt;
&lt;p&gt;i, usunig ngen uninstall mscrolib ...&lt;/p&gt;
&lt;p&gt; i am &amp;nbsp;using vissual dtudio 2010....while &amp;nbsp;issuing the above cpmmand error msg show cannot find specified path&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10292538" width="1" height="1"&gt;</description></item><item><title>re: NGen: Walk-through Series</title><link>http://blogs.msdn.com/b/clrcodegeneration/archive/2010/04/27/ngen-walk-through-series.aspx#10269489</link><pubDate>Sun, 19 Feb 2012 19:18:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10269489</guid><dc:creator>arun.passioniway</dc:creator><description>&lt;p&gt;Good links pracheeti. Thanks for your efforts in putting them here for us.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10269489" width="1" height="1"&gt;</description></item><item><title>re: NGen: Walk-through Series</title><link>http://blogs.msdn.com/b/clrcodegeneration/archive/2010/04/27/ngen-walk-through-series.aspx#10261018</link><pubDate>Thu, 26 Jan 2012 22:05:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10261018</guid><dc:creator>Matthias Mueller</dc:creator><description>&lt;p&gt;Hello Pracheeti,&lt;/p&gt;
&lt;p&gt;I read your great 2010th article &amp;quot;NGen: Measuring Working Set with VMMap&amp;quot;.&lt;/p&gt;
&lt;p&gt;And I have several questions on the NGEN, ASLR, and Rebasing issues you mentioned.&lt;/p&gt;
&lt;p&gt;Maybe you can bring some more light in these topics.&lt;/p&gt;
&lt;p&gt;1) Regarding Vista and newer, is it still necessary to do a basing of one&amp;#39;s managed DLLs when generating NIs to achieve code sharing?&lt;/p&gt;
&lt;p&gt;2) If basing is still necessary, do I have to calculate the base addresses based on the NI&amp;#39;s size (which is twice as large as the IL)?&lt;/p&gt;
&lt;p&gt;3) If basing is no longer required, will the NIs code pages still get shared among different processes using the same DLL?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;-Matthias&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10261018" width="1" height="1"&gt;</description></item><item><title>re: Improvements to NGen in .NET Framework 4</title><link>http://blogs.msdn.com/b/clrcodegeneration/archive/2009/05/03/improvements-to-ngen-in-.net-framework-4.aspx#10243760</link><pubDate>Fri, 02 Dec 2011 16:27:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10243760</guid><dc:creator>wraith</dc:creator><description>&lt;p&gt;Hi Surupa,&lt;/p&gt;
&lt;p&gt;We&amp;#39;re trying to generate native images for approx 3000 (!) assemblies and faced with a problem.&lt;/p&gt;
&lt;p&gt;After installation the files are queued up with &amp;#39;ngen /queue&amp;#39; command and there is a reboot performed slightly later and after the machine comes up some files are not getting ngen&amp;#39;d... the queue seems to be empty.&lt;/p&gt;
&lt;p&gt;Before the reboot, it is clearly visible that files were in &amp;#39;StatusPending&amp;#39; state.&lt;/p&gt;
&lt;p&gt;Any idea?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10243760" width="1" height="1"&gt;</description></item><item><title>re: Improvements to NGen in .NET Framework 4</title><link>http://blogs.msdn.com/b/clrcodegeneration/archive/2009/05/03/improvements-to-ngen-in-.net-framework-4.aspx#10223532</link><pubDate>Wed, 12 Oct 2011 00:09:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10223532</guid><dc:creator>khan</dc:creator><description>&lt;p&gt;i see. AC is looking for partner here. if surupa is married then not good for AC :(&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10223532" width="1" height="1"&gt;</description></item></channel></rss>