Page 1 of 1

speed up compilation

Posted: Thu Nov 23, 2023 10:34 pm
by ldir_hector
I have noticed that compilation can be quite long on Windows !
I use enable peephole optimizations up to 16 passes and enable listing and enable additional info.

Does this options increase the compilation time ?

Does the compilation on windows use several CPU cores ?

Re: speed up compilation

Posted: Fri Nov 24, 2023 1:00 pm
by spotlessmind1975
Hi ldir_hector!
ldir_hector wrote: Thu Nov 23, 2023 10:34 pm I use enable peephole optimizations up to 16 passes and enable listing and enable additional info.
Does this options increase the compilation time ?
Surely, the option for additional information slows down the compilation a lot. It actually depends on the size of the generated assembly file. Without going into too much detail, let's say that the real problem is the comparison between the assembly (understood as a pure source) and the listing (understood as a product of the assembler). Since the compiler must calculate the contribution of each line of code to the space occipied, it actually performs a line-by-line comparison for these two files. Time therefore tends to increase a lot.
ldir_hector wrote: Thu Nov 23, 2023 10:34 pm Does the compilation on windows use several CPU cores ?
No, because the file to be compiled is unique.