pr社网红极品女神:Build,Batch Build与RebuildAll的区别

来源:百度文库 编辑:中财网 时间:2024/05/07 12:51:50

Build菜单下有Compile,Build,Rebuild   All三个菜单项用于编译程序。其中Compile用于编译当前打开的活动文档;Build只编译工程中上次修改过的文件,并链接程序生成可执行文件。如果以前没有作过编译,它会自动调用Rebuild   All操作,依次编译资源文件、源程序文件等;Rebuild   All不管文件是否作过修改,都会编译工程中的所有源文件。由于编译链接过程中会产生大量的中间文件和目标文件,它们占用许多硬盘空间,因此Visual   Studio在Build下提供了Clean菜单项用于清除这些中间文件。用户在完成一个工程后,应及时清理这些中间文件,否则硬盘很快会被耗尽。

 

 

Build只是重新编译 更新过的文件 和 依赖于更新过的文件的模块,然后链接。
如果编译系统没有正确解释依赖关系,那就会出错。makefile因为明白指定了这种关系,相对出类似的问题

build all会编译所有文件再链接...

 

 

TI技术文档应该有说明的,我记得是build-increase by step
rebuild 则是全部,就是把相应的文件全部链接,具体你再看下技术文档


P.S. 我自己查了下技术文档:TI CCS user guide,建议你提问提前先看看相应的文档
Incremental Build
Select Project->Build to build the current project. This command compiles
only the files that have changed since the last build. Whether a file must be
compiled is determined by comparing the time stamp of the source file to that
of the object file. If the source file's time stamp is greater than the
corresponding object file's time stamp, the file is recompiled. To determine
whether the output file must be re-linked, the time stamp of each object file is
compared to that of the output file. The output file is re-linked if the object file's
time stamp is greater.

Rebuild
All
Select Project->Rebuild All to recompile all files in the current project and
re-link the output file.

build
是指increase build
rebuild 其实是rebuild all

 

 

点击菜单栏上的Build(编译)->Batch Build(配置...),在弹出的对话框中选择编译哪个版本,或者两个版本都编译。