简体   繁体   中英

Why does compiling C take so long time?

When I compile a C project it can take about 90 seconds even though I use a fast Intel I7 CPU. Is it because compilation is a low-level task or why are my build times so long? My environment is the Nios 2 IDE for Altera DE2 FPGA.

如果您的项目由Makefile管理,请尝试使用“ make -jn”来触发编译中的多线程,n是用于编译的线程数,例如“ make -j10”

Is it actually the compile taking the time? My experience of softcore processor (and other embedded development) is that the compile is quick (comparable with compiling host-based code) and the time is taken uploading the new code to the embedded system to test.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM