Deutsch   English   Français   Italiano  
<vs0jka$1gdpo$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: bart <bc@freeuk.com>
Newsgroups: comp.lang.c
Subject: Re: Suggested method for returning a string from a C program?
Date: Wed, 26 Mar 2025 10:07:05 +0000
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <vs0jka$1gdpo$1@dont-email.me>
References: <vrd77d$3nvtf$2@dont-email.me> <vrhviu$h5c$1@dont-email.me>
 <87ecyrs332.fsf@nosuchdomain.example.com> <vri9t1$a29t$1@dont-email.me>
 <20250320171505.221@kylheku.com> <vrif1v$c9ev$3@dont-email.me>
 <8734f7rw7z.fsf@nosuchdomain.example.com> <vrjjvb$1esjh$1@dont-email.me>
 <87tt7mqk7w.fsf@nosuchdomain.example.com> <vrkvt5$2k04q$2@dont-email.me>
 <87cye9afl0.fsf@nosuchdomain.example.com> <vrmckn$114k$1@dont-email.me>
 <871puoag2q.fsf@nosuchdomain.example.com> <vrnoft$15f6n$1@dont-email.me>
 <vrrh0c$qila$1@dont-email.me> <vrrouo$11up7$1@dont-email.me>
 <vrrqe0$12u8q$1@dont-email.me> <vrrs20$14vob$1@dont-email.me>
 <vrrvnh$176lu$1@dont-email.me> <vrs0j5$191gt$1@dont-email.me>
 <vrs2eu$176lu$2@dont-email.me> <vrs2r3$1b0ov$1@dont-email.me>
 <vrs7oi$1e2j7$1@dont-email.me> <vrtq62$2unrb$1@dont-email.me>
 <vru2t0$35frt$2@dont-email.me> <vrufju$3i02s$1@dont-email.me>
 <vrugmo$3ij4s$2@dont-email.me> <vrugut$3j3ah$1@dont-email.me>
 <vruma5$3mvbj$2@dont-email.me> <vs0gsh$1en04$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Mar 2025 11:07:06 +0100 (CET)
Injection-Info: dont-email.me; posting-host="b1044a3401b57bc3da2b217ca554eee5";
	logging-data="1587000"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19ym0HnMTtZJ3t6dnukVUcF"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:6y0HuC3SwxzTiZ3MztxIS2/T4hM=
Content-Language: en-GB
In-Reply-To: <vs0gsh$1en04$1@dont-email.me>
Bytes: 3535

On 26/03/2025 09:20, Muttley@DastardlyHQ.org wrote:
> On Tue, 25 Mar 2025 16:40:38 +0000
> bart <bc@freeuk.com> wibbled:
>> On 25/03/2025 15:09, Muttley@DastardlyHQ.org wrote:
>>
>>> You're the one extolling the virtues of a single source file, not me.
>>>
>>> Here's an idea - instead of outputting C why don't you make it output
>>> machine code instead. Might be more useful.
>>
>>
>> What makes you think I don't? The C code is mainly for people who can't
>> or won't run Windows binaries. It also makes it incredibly easy to build
>>from source (gcc prog.c).
>>
>> In my case I want to apply gcc-level optimisations that my compiler
>> doesn't do. So it has to be C code if I want that final 25% extra speed.
> 
> Whats this? You mean your amazing zippy fast compiler can't optimise for shit?

Well, it is compiled with itself and it manages that in 70ms despite 
lacking the optimiser. Otherwise it might do it it 60ms. It is amazingly 
fast either way.

> Maybe gcc isn't so bad after all eh?

I'm not complaining about the quality of its code.

However, it is 200 times bigger than my product, and can take 100 times 
longer to compile code, which in the current project might yield 10-25% 
extra speed.

That is only needed here because I'm compiling benchmark results to 
compare with other products that will also be using the best possible 
optimisation.

For everyday use however, that small boost is not relevant, and not 
worth the extra hassle.