Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我编译一个 C 项目时,即使我使用的是快速的 Intel I7 CPU,它也可能需要大约 90 秒。是因为编译是一项低级任务,还是因为我的构建时间如此之长?我的环境是用于 Altera DE2 FPGA 的 Nios 2 IDE。
如果您的项目由 Makefile 管理,请尝试“make -jn”以在编译时触发多线程,n 是用于编译的线程编号,例如“make -j10”
实际上是编译需要时间吗?我对软核处理器(和其他嵌入式开发)的经验是编译速度很快(与编译基于主机的代码相当),并且需要花费时间将新代码上传到嵌入式系统进行测试。