speed up compilation

This forum is dedicated to those who wish to suggest new features.
Questo forum è dedicato a chi desidera suggerire nuove feature.
Ce forum est dédié à ceux qui souhaitent suggérer de nouvelles fonctionnalités.
Post Reply
ldir_hector
Posts: 13
Joined: Sun Oct 08, 2023 11:47 am

speed up compilation

Post 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 ?
spotlessmind1975
Site Admin
Posts: 171
Joined: Fri Oct 06, 2023 8:25 pm

Re: speed up compilation

Post 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.
Post Reply