﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" 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/"><channel><title>C++博客-nevinguo-文章分类-C&amp;CPP</title><link>http://www.cppblog.com/nevinguo/category/336.html</link><description /><language>zh-cn</language><lastBuildDate>Thu, 05 Jun 2008 04:37:01 GMT</lastBuildDate><pubDate>Thu, 05 Jun 2008 04:37:01 GMT</pubDate><ttl>60</ttl><item><title>Make</title><link>http://www.cppblog.com/nevinguo/articles/2404.html</link><dc:creator>老锅</dc:creator><author>老锅</author><pubDate>Tue, 03 Jan 2006 09:55:00 GMT</pubDate><guid>http://www.cppblog.com/nevinguo/articles/2404.html</guid><wfw:comment>http://www.cppblog.com/nevinguo/comments/2404.html</wfw:comment><comments>http://www.cppblog.com/nevinguo/articles/2404.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/nevinguo/comments/commentRss/2404.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/nevinguo/services/trackbacks/2404.html</trackback:ping><description><![CDATA[<P>1. Make规则<BR>&nbsp;&nbsp;&nbsp; myprog:foo.o bar.o<BR>2. Make变量<BR>&nbsp;&nbsp;&nbsp; OBJS = foo.0 bar.o<BR>&nbsp;&nbsp;&nbsp; CC = gcc<BR>&nbsp;&nbsp;&nbsp; CFLAGS = -Wall -O -g<BR>3. 可以使用命令<BR>&nbsp;&nbsp;&nbsp; rm *.o<BR>&nbsp;&nbsp;&nbsp; rm myprog<BR>4. 函数<BR>&nbsp;&nbsp; wildcard<BR>&nbsp;&nbsp; patsubst(pattern sbustitude 匹配替换)</P><img src ="http://www.cppblog.com/nevinguo/aggbug/2404.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/nevinguo/" target="_blank">老锅</a> 2006-01-03 17:55 <a href="http://www.cppblog.com/nevinguo/articles/2404.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>C/C++中的内存分配方式</title><link>http://www.cppblog.com/nevinguo/articles/2164.html</link><dc:creator>老锅</dc:creator><author>老锅</author><pubDate>Tue, 27 Dec 2005 04:55:00 GMT</pubDate><guid>http://www.cppblog.com/nevinguo/articles/2164.html</guid><wfw:comment>http://www.cppblog.com/nevinguo/comments/2164.html</wfw:comment><comments>http://www.cppblog.com/nevinguo/articles/2164.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/nevinguo/comments/commentRss/2164.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/nevinguo/services/trackbacks/2164.html</trackback:ping><description><![CDATA[<div align="center"><font size="6"><b><font color="#0000ff">内存分配方式有三种</font></b>：</font><br>

</div>
<h1>
（1）	从静态存储区域分配。</h1>
内存在程序编译的时候就已经分配好，这块内存在程序的整个运行期间都存在。例如全局变量，static变量, 常量.<br>
<h1>
（2）	在栈上创建。</h1>
在执行函数时，函数内局部变量的存储单元都可以在栈上创建，函数执行结束时这些存储单元自动被释放。栈内存分配运算内置于处理器的指令集中，效率很高，但是分配的内存容量有限。<br>
<h1>
（3）	从堆上分配，亦称动态内存分配。</h1>
程序在运行的时候用malloc或new申请任意多少的内存，程序员自己负责在何时用free或delete释放内存。动态内存的生存期由我们决定，使用非常灵活，但问题也最多。<img src ="http://www.cppblog.com/nevinguo/aggbug/2164.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/nevinguo/" target="_blank">老锅</a> 2005-12-27 12:55 <a href="http://www.cppblog.com/nevinguo/articles/2164.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何只进行预编译</title><link>http://www.cppblog.com/nevinguo/articles/1124.html</link><dc:creator>老锅</dc:creator><author>老锅</author><pubDate>Mon, 14 Nov 2005 11:01:00 GMT</pubDate><guid>http://www.cppblog.com/nevinguo/articles/1124.html</guid><wfw:comment>http://www.cppblog.com/nevinguo/comments/1124.html</wfw:comment><comments>http://www.cppblog.com/nevinguo/articles/1124.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/nevinguo/comments/commentRss/1124.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/nevinguo/services/trackbacks/1124.html</trackback:ping><description><![CDATA[<P>利用命令行<BR>cl /EP&nbsp; 或&nbsp; cl /E.<BR>/EP 表示不写行号<BR><BR>cl /E&nbsp;@参数文件名 源文件名 &gt; 预编译后文件名</P>
<P>对于brew,编译的参数文件内容为<BR>/I "./inc" /I "../widgets/inc" /I "C:\Program Files\BREW 3.1.4\sdk\inc" /I "C:\Program Files\BREW 3.1.4\pk\inc" /I "../xmod" /I "../motuiext/inc" /I "../util" /D "AEE_SIMULATOR"</P><img src ="http://www.cppblog.com/nevinguo/aggbug/1124.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/nevinguo/" target="_blank">老锅</a> 2005-11-14 19:01 <a href="http://www.cppblog.com/nevinguo/articles/1124.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>