The following type of script incurs multiple loads and unloads of the compiler and multiple license checkouts:
Instead, you can try modifying your script to compile multiple
files within a single invocation of
file1.c file2.c file3.c
For convenience, you can also list all your
in a single via file invoked with
armcc -via .
Although this mechanism can dramatically reduce license checkouts and loading and unloading of the compiler to give significant improvements in build time, the following limitations apply:
All files are compiled with the same options.
Converting existing build systems could be difficult.
Usability depends on source file structure and dependencies.
An IDE might be unable to report which file had compilation errors.
After detecting an error, the compiler does not compile subsequent files.
Compiling these files at optimization level
-O3enables multifile compilation, which might increase build times. Use
--no_multifileto disable multifile compilation.