🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Long build times.

Started by
20 comments, last by SuperVGA 3 years, 9 months ago

hplus0603 said:

SuperVGA said:
Please elaborate on how you'd go about reducing linking time by increasing RAM or cores (Or machines)?.

Sorry, I didn't see this part until now. As I said in the other answer: Split into .so files, use weak (late-resolved) symbols. There is still a final linker phase where they are all collected, but with weak symbols, that's pretty fast. (At the expense of making starting the game slower …

That's a great idea - I'll try that. Alternatively, perhaps it would be possible to build libraries for various groupings (namespaces or by directory perhaps) so there are fewer things to link. At the moment I have an .o-file for every cpp file, hundreds of them.
Is it possible that fewer, larger ones would link faster?

This topic is closed to new replies.

Advertisement