I’m encountering slow build times with the tools. Is there a way to help speed this up?
There are a few areas that you can look at which will hopefully speed up slow build times. The first area to look at is your machine, does it meet the minimum requirements for our tools? If you’re unsure you can find details of the CCES minimum requirements here. A simple reboot of the machine is recommended as we’ve seen instances where a build that was taking 5 minutes was cut to 21 seconds after a reboot.
Does your application contain large arrays? Large array initialisers can take a long time to parse (this is particularly true for C++, where constructors may need to be called on the constants in the arrays, too). When the compiler encounters large declarations like this, it doesn't emit them to the assembly file as literal initialisers, because that would mean the assembler would also take a long time to parse the initialiser. Instead, the compiler writes the initialiser to a binary file, and then emits a .inc/bin directive to the assembly file. That saves the assembler from repeating the work the compiler's just done.
One workaround for application using large arrays is:
Please be aware, the compiler does have a mechanism for reporting if a compilation is taking a long time, which is the various –progress-rep switches. These are on by default, and will report if the optimiser is taking a long time. However, this mechanism doesn't apply in the case of large data arrays, for two reasons:
Other areas to look at for speeding up slow build times include: