Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <875xsebnkl.fsf@nosuchdomain.example.com>
Deutsch   English   Français   Italiano  
<875xsebnkl.fsf@nosuchdomain.example.com>

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

Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: relearning C: why does an in-place change to a char* segfault?
Date: Mon, 05 Aug 2024 15:40:42 -0700
Organization: None to speak of
Lines: 43
Message-ID: <875xsebnkl.fsf@nosuchdomain.example.com>
References: <IoGcndcJ1Zm83zb7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
	<20240801114615.906@kylheku.com> <v8gs06$2ceis$1@dont-email.me>
	<v8jlnk$31hqf$1@dont-email.me>
	<87bk29duba.fsf@nosuchdomain.example.com>
	<v8mkao$3n2rq$5@dont-email.me>
	<8734nldmea.fsf@nosuchdomain.example.com>
	<v8prni$hmng$1@dont-email.me>
	<871q33cw4p.fsf@nosuchdomain.example.com>
	<v8rg3j$13kvd$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 06 Aug 2024 00:40:43 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0d062b766edeb1036a6f3beb21bf3d09";
	logging-data="1163267"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/VBYAIIItUZxsMgLNH6VhV"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:fs9kKwH6b9QGhfB0gN+ytmncOVI=
	sha1:WLx7sHXLeABgMW52NIgk+bfr8EY=
Bytes: 3145

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> On Sun, 04 Aug 2024 23:38:14 -0700, Keith Thompson wrote:
>> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>> On Sat, 03 Aug 2024 19:58:37 -0700, Keith Thompson wrote:
>>>> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>>>> On Sat, 03 Aug 2024 17:07:37 -0700, Keith Thompson wrote:
>>>>>> ... general compression isn't something I've seen ...
>>>>>
>>>>> I recall Apple had a patent on some aspects of the “PEF” executable
>>>>> format that they created for their PowerPC machines running old
>>>>> MacOS. This had to do with some clever instruction encodings for
>>>>> loading stuff into memory.
>>>> 
>>>> Is that relevant to what I asked about?
>>>
>>> “Compression”
>> 
>> Was that intended to be responsive?
>
> Hint: you have to know something about executable formats.

I am profoundly uninterested in hints.

Here's what you snipped from what I wrote upthread:

    What I had in mind is something that, given this:

        static int buf = { 1, 1, 1, ..., 1 }; // say, 1000 elements

    would store something less than 1000*sizeof(int) bytes in the executable
    file.  I wouldn't be hard to do, but I'm not convinced it would be
    worthwhile.

There's a lot I don't know about executable formats, and you seem
uninterested in doing more than showing off your presumed knowledge
without actually sharing it.  Others have already answered my direct
question (Richard Damon and David Brown mentioned implementations
that use simple run-length encoding, and David gave some reasons
why it could be useful), so you can stop wasting everyone's time.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */