Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22016

Large header file vs compilation time [closed]

$
0
0

Im working on a large project, my issue is as follows:I have a large (200k lines of code) header file which is auto generated code, it contains about 3k classes (all of them are small classes).And the project has about 500 files and each one includes this file to use 2/3 classes of it.I saw in gcc that 65% of compilation for each files goes into parsing.My question is should I create a file for each autogenerated class and include only the files needed instead of this large file and it'll optimize compilation time or is it a waste of time?Thank you so much!


Viewing all articles
Browse latest Browse all 22016

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>