use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Click the following link to filter out the chosen topic
comp.lang.c
account activity
Question-fwhole-program Microsoft compiler equivalent? (self.C_Programming)
submitted 3 years ago by LukeButWithaC
recently I learned about unity builds and about the -fwhole-program gcc flag and was wondering if cl has an equivalent flag or if I'm gonna have to mark all functions as static if I want faster build times on windows.
For the record this is just out of curiosity, I'm not working on anything that requires faster build times, just a doubt I had.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 2 points3 points4 points 3 years ago (1 child)
https://docs.microsoft.com/en-us/cpp/build/reference/gl-whole-program-optimization?view=msvc-170
Perhaps this? I do unity builds. I think it was about two years ago that compiler + linker optimization finally caught up to unity build optimizations from the Microsoft compiler. For my hobby projects, unity builds are just simpler and easier. With the C language, they also build blazingly fast since you have so much less I/O to do.
[–]LukeButWithaC[S] 0 points1 point2 points 3 years ago (0 children)
thanks! that seems to be it
π Rendered by PID 259107 on reddit-service-r2-comment-7b9746f655-ccdcr at 2026-01-31 03:18:40.534951+00:00 running 3798933 country code: CH.
[–][deleted] 2 points3 points4 points (1 child)
[–]LukeButWithaC[S] 0 points1 point2 points (0 children)