Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: Suggested method for returning a string from a C program? Date: Thu, 27 Mar 2025 10:54:16 -0700 Organization: A noiseless patient Spider Lines: 14 Message-ID: <86r02iicl3.fsf@linuxsc.com> References: <20250326110011.634@kylheku.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Thu, 27 Mar 2025 18:54:18 +0100 (CET) Injection-Info: dont-email.me; posting-host="3a6190fab936320ab0975276fac84019"; logging-data="838525"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2rOOQeUxC2a0sFhFFVxqhKaiPFgzdh7s=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:RuN3AbK0D2MqVvZZy6XwB+03leQ= sha1:ggPGMHSM9bGf6yacV5x21fgju6s= scott@slp53.sl.home (Scott Lurndal) writes: > [...] I have one > source file that takes almost 7 minutes to compile > when using -O3 on a very-high-end xeon box. Mostly > buried in the overall compile time when using parallel > make. > > The code could be restructured to compile in a few seconds; > but that would require substantial changes to the rest > of the codebase. Compiling with -O0 for development > testing reduces the compile time to a few seconds. How long does it take compiling with -O1?