<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《发现一隐藏多年的Bug》的评论</title>
	<atom:link href="http://tonybai.com/2008/09/06/found-a-bug-that-is-hidden-several-years/feed/" rel="self" type="application/rss+xml" />
	<link>https://tonybai.com/2008/09/06/found-a-bug-that-is-hidden-several-years/</link>
	<description>一个程序员的心路历程</description>
	<lastBuildDate>Wed, 25 Mar 2026 09:21:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>作者：supermaomao</title>
		<link>https://tonybai.com/2008/09/06/found-a-bug-that-is-hidden-several-years/#comment-337</link>
		<dc:creator>supermaomao</dc:creator>
		<pubDate>Wed, 22 Oct 2008 22:15:56 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/2008/09/06/%e5%8f%91%e7%8e%b0%e4%b8%80%e9%9a%90%e8%97%8f%e5%a4%9a%e5%b9%b4%e7%9a%84bug%ef%bc%9f/#comment-337</guid>
		<description>恩，hope so！兴趣是最好的老师，(*^__^*) 嘻嘻~~~</description>
		<content:encoded><![CDATA[<p>恩，hope so！兴趣是最好的老师，(*^__^*) 嘻嘻~~~</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：supermaomao</title>
		<link>https://tonybai.com/2008/09/06/found-a-bug-that-is-hidden-several-years/#comment-338</link>
		<dc:creator>supermaomao</dc:creator>
		<pubDate>Sat, 18 Oct 2008 10:38:36 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/2008/09/06/%e5%8f%91%e7%8e%b0%e4%b8%80%e9%9a%90%e8%97%8f%e5%a4%9a%e5%b9%b4%e7%9a%84bug%ef%bc%9f/#comment-338</guid>
		<description>太崇拜你了，写的好清晰明白深入啊！！！我是网络专业的，喜欢编程就是了，菜鸟一个，羡慕你们高手啊！！！我会经常浏览你blog的哦...期待你多发些精彩的文章，嘻嘻</description>
		<content:encoded><![CDATA[<p>太崇拜你了，写的好清晰明白深入啊！！！我是网络专业的，喜欢编程就是了，菜鸟一个，羡慕你们高手啊！！！我会经常浏览你blog的哦&#8230;期待你多发些精彩的文章，嘻嘻</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：blueoceanli</title>
		<link>https://tonybai.com/2008/09/06/found-a-bug-that-is-hidden-several-years/#comment-339</link>
		<dc:creator>blueoceanli</dc:creator>
		<pubDate>Sun, 28 Sep 2008 16:43:23 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/2008/09/06/%e5%8f%91%e7%8e%b0%e4%b8%80%e9%9a%90%e8%97%8f%e5%a4%9a%e5%b9%b4%e7%9a%84bug%ef%bc%9f/#comment-339</guid>
		<description>你们这个bug太强了,怎么会,现在不得而知了,编译器根本就不过.难道早期编译器没处理这类问题,哈哈.</description>
		<content:encoded><![CDATA[<p>你们这个bug太强了,怎么会,现在不得而知了,编译器根本就不过.难道早期编译器没处理这类问题,哈哈.</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：freshmn</title>
		<link>https://tonybai.com/2008/09/06/found-a-bug-that-is-hidden-several-years/#comment-340</link>
		<dc:creator>freshmn</dc:creator>
		<pubDate>Sun, 21 Sep 2008 15:34:42 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/2008/09/06/%e5%8f%91%e7%8e%b0%e4%b8%80%e9%9a%90%e8%97%8f%e5%a4%9a%e5%b9%b4%e7%9a%84bug%ef%bc%9f/#comment-340</guid>
		<description>当调用函数时，会复制一份实参的值到栈中，对于第一个例子：
typedef struct Foo {
        int     a;
        int     b;
        int     c;
} Foo;

int main() {
        Foo f;
        f.a = 17;
        f.b = 23;
        f.c = 19;

        test_foo(f);
}

void test_foo(Foo *pfoo) {
        pfoo-&gt;c = 29;
}
调用：
 test_foo(f);时，编译器就会将结构体f复制到栈中（正如你接下来汇编分析中说看到的）。然后调用函数test_foo。而这个函数的参数是个指针，在编译器编译的时候会按照指针的方式处理，所以这样调用下来后，就将栈中那个复制了的结构体的首地址赋给pfoo指针了。
：）我的理解</description>
		<content:encoded><![CDATA[<p>当调用函数时，会复制一份实参的值到栈中，对于第一个例子：<br />
typedef struct Foo {<br />
        int     a;<br />
        int     b;<br />
        int     c;<br />
} Foo;</p>
<p>int main() {<br />
        Foo f;<br />
        f.a = 17;<br />
        f.b = 23;<br />
        f.c = 19;</p>
<p>        test_foo(f);<br />
}</p>
<p>void test_foo(Foo *pfoo) {<br />
        pfoo-&gt;c = 29;<br />
}<br />
调用：<br />
 test_foo(f);时，编译器就会将结构体f复制到栈中（正如你接下来汇编分析中说看到的）。然后调用函数test_foo。而这个函数的参数是个指针，在编译器编译的时候会按照指针的方式处理，所以这样调用下来后，就将栈中那个复制了的结构体的首地址赋给pfoo指针了。<br />
：）我的理解</p>
]]></content:encoded>
	</item>
</channel>
</rss>
