<?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>Problem with .maxstack in IL-roundtripping tools </title><link>http://blogs.msdn.com/jmstall/archive/2005/07/20/ilasm-maxstack.aspx</link><description>I previously posted a tool to allow inline IL in C# / VB.Net. At the IL level, the CLR needs to know the maximum stack depth of each method. This can be specified in ILasm via the “.maxstack” directive. In that post I wrongfully said that if you leave</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Problem with .maxstack in IL-roundtripping tools </title><link>http://blogs.msdn.com/jmstall/archive/2005/07/20/ilasm-maxstack.aspx#441109</link><pubDate>Thu, 21 Jul 2005 00:03:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:441109</guid><dc:creator>Kevin Lindsey</dc:creator><description>FWIW, I think the default stack value of 8 comes from the CLI specification and not necessarily from ILAsm. In Partition II, &amp;quot;24.4.2 Tiny Format&amp;quot;, it states when a tiny header is used as the method header type &amp;quot;The operand stack need be no bigger than 8 entries.&amp;quot; But I agree that it would be cool to have ILAsm compute the .maxstack for you.</description></item><item><title>re: Problem with .maxstack in IL-roundtripping tools </title><link>http://blogs.msdn.com/jmstall/archive/2005/07/20/ilasm-maxstack.aspx#441118</link><pubDate>Thu, 21 Jul 2005 00:33:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:441118</guid><dc:creator>jmstall</dc:creator><description>Kevin - you're correct (that's what Serge said when I talked to him about it).&lt;br&gt;There's certainly no innate correlation between default stack size for a tiny header and default maxstack value in ilasm; so using tiny header's defaults for maxstack seems silly.&lt;br&gt;Afterall, once you're editing things at the IL level (and not worrying about binary encodings), &amp;quot;tiny header&amp;quot; becomes just a meaningless concept.  </description></item><item><title>More Interesting Finds</title><link>http://blogs.msdn.com/jmstall/archive/2005/07/20/ilasm-maxstack.aspx#442646</link><pubDate>Sun, 24 Jul 2005 15:42:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:442646</guid><dc:creator>Jason Haley</dc:creator><description /></item></channel></rss>