Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Trespassers will be shot. Survivors will be prosecuted.


devel / comp.sys.apple2.programmer / Re: malloc with cc65

SubjectAuthor
* malloc with cc65Bill Chatfield
`* Re: malloc with cc65Oliver Schmidt
 `* Re: malloc with cc65Bill Chatfield
  `* Re: malloc with cc65Oliver Schmidt
   +* Re: malloc with cc65Bill Chatfield
   |`* Re: malloc with cc65Oliver Schmidt
   | `* Re: malloc with cc65Bill Chatfield
   |  `* Re: malloc with cc65Peter 'Shaggy' Haywood
   |   `* Re: malloc with cc65Bill Chatfield
   |    `- Re: malloc with cc65Peter 'Shaggy' Haywood
   `- Re: malloc with cc65Colin Leroy-Mira

1
malloc with cc65

<20231214135300.3f65fe0f@smilodon-gracilis>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=423&group=comp.sys.apple2.programmer#423

  copy link   Newsgroups: comp.sys.apple2.programmer
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bill_cha...@yahoo.com (Bill Chatfield)
Newsgroups: comp.sys.apple2.programmer
Subject: malloc with cc65
Date: Thu, 14 Dec 2023 13:53:00 -0500
Organization: A noiseless patient Spider
Lines: 3
Message-ID: <20231214135300.3f65fe0f@smilodon-gracilis>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="8994ef460ee919de766e447a4682b4f7";
logging-data="32273"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19O1oUhemE9B29gEg5yinorSDC6xaF1oYE="
Cancel-Lock: sha1:vuFOtIlS+Lo8CRa5F2g6yx3olvc=
X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu)
 by: Bill Chatfield - Thu, 14 Dec 2023 18:53 UTC

Can cc65 really build dynamically allocated data structures like a
vector or a map, or is it better to use a static implementation?

Re: malloc with cc65

<ulfvsv$2pb5c$1@solani.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=424&group=comp.sys.apple2.programmer#424

  copy link   Newsgroups: comp.sys.apple2.programmer
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: ol....@web.de (Oliver Schmidt)
Newsgroups: comp.sys.apple2.programmer
Subject: Re: malloc with cc65
Date: Thu, 14 Dec 2023 22:34:07 -0000 (UTC)
Message-ID: <ulfvsv$2pb5c$1@solani.org>
References: <20231214135300.3f65fe0f@smilodon-gracilis>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 14 Dec 2023 22:34:07 -0000 (UTC)
Injection-Info: solani.org;
logging-data="2927788"; mail-complaints-to="abuse@news.solani.org"
User-Agent: NewsTap/5.5 (iPhone/iPod Touch)
Cancel-Lock: sha1:gF1T1j4oZqsDbJeRE4l0oh4826k= sha1:aKDmXlSL9BCYJ+JHSuWOvzvkPOo=
X-User-ID: eJwFwYERACEIBLGWeOFWKAdx7L+ET+R8zA5E6OnZQtItvywmPaFoWUX2yX4e2AzWOu075wf7ABBN
 by: Oliver Schmidt - Thu, 14 Dec 2023 22:34 UTC

Hi Bill,

> Can cc65 really build dynamically allocated data structures like a
> vector or a map, or is it better to use a static implementation?

1. cc65 comes with a fully functional heap manager incl. heap
defragmentation.

2. The cc65 optimizer (always compile with -O) knows about "pointer
constants" (in contrast to pointer variables) so the code to access them is
usually faster/smaller.

Regards,
Oliver

Re: malloc with cc65

<20231214215955.353cd4e4@smilodon-gracilis>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=426&group=comp.sys.apple2.programmer#426

  copy link   Newsgroups: comp.sys.apple2.programmer
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bill_cha...@yahoo.com (Bill Chatfield)
Newsgroups: comp.sys.apple2.programmer
Subject: Re: malloc with cc65
Date: Thu, 14 Dec 2023 21:59:55 -0500
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <20231214215955.353cd4e4@smilodon-gracilis>
References: <20231214135300.3f65fe0f@smilodon-gracilis>
<ulfvsv$2pb5c$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="1dc7371e60ee875ccda498369f269634";
logging-data="32273"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19YPX6+Tzzo34xjYUBN7MWj90YIbUB0chc="
Cancel-Lock: sha1:835RtuHO7Jj1rjL3NpjPmw9dTDw=
X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu)
 by: Bill Chatfield - Fri, 15 Dec 2023 02:59 UTC

On Thu, 14 Dec 2023 22:34:07 -0000 (UTC)
Oliver Schmidt <ol.sc@web.de> wrote:

> 1. cc65 comes with a fully functional heap manager incl. heap
> defragmentation.

That is fantastic!
> 2. The cc65 optimizer (always compile with -O) knows about "pointer
> constants" (in contrast to pointer variables) so the code to access
> them is usually faster/smaller.

I'm not sure where a pointer constant would be used in a C program.
Would this be an address defined with #define or something like:
const char *KBD
?

Re: malloc with cc65

<ulirs5$4fr4$1@solani.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=427&group=comp.sys.apple2.programmer#427

  copy link   Newsgroups: comp.sys.apple2.programmer
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: ol....@web.de (Oliver Schmidt)
Newsgroups: comp.sys.apple2.programmer
Subject: Re: malloc with cc65
Date: Sat, 16 Dec 2023 00:43:49 -0000 (UTC)
Message-ID: <ulirs5$4fr4$1@solani.org>
References: <20231214135300.3f65fe0f@smilodon-gracilis>
<ulfvsv$2pb5c$1@solani.org>
<20231214215955.353cd4e4@smilodon-gracilis>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 16 Dec 2023 00:43:49 -0000 (UTC)
Injection-Info: solani.org;
logging-data="147300"; mail-complaints-to="abuse@news.solani.org"
User-Agent: NewsTap/5.5 (iPhone/iPod Touch)
Cancel-Lock: sha1:EL/pKSGCTh9HA/yBPA/WfCIXXYs= sha1:hKuJN1GhN36r0woukN4XpMvKzeo=
X-User-ID: eJwNyMEBwCAIA8CVEEhqx0Eh+4/Q3vMQXLxPEkwI2pYO+p9UDFQ9uU7aDA9Vuavi7RpD40r+ARNlEY0=
 by: Oliver Schmidt - Sat, 16 Dec 2023 00:43 UTC

Hi Bill,

>> 2. The cc65 optimizer (always compile with -O) knows about "pointer
>> constants" (in contrast to pointer variables) so the code to access
>> them is usually faster/smaller.

> I'm not sure where a pointer constant would be used in a C program.

I meant the term in this sense...

An integer variable:
int a

An integer constant:
5

Setting the variable to the constant:
a = 5

A pointer variable:
int *b

A pointer constant:
int c[10]

Setting the variable to the constant:
b = c

What I state above means that using c is faster/smaller than using b like
this:
*c = 2
*b = 2

Regards,
Oliver

Re: malloc with cc65

<20231218005802.24df6e51@smilodon-gracilis>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=428&group=comp.sys.apple2.programmer#428

  copy link   Newsgroups: comp.sys.apple2.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bill_cha...@yahoo.com (Bill Chatfield)
Newsgroups: comp.sys.apple2.programmer
Subject: Re: malloc with cc65
Date: Mon, 18 Dec 2023 00:58:02 -0500
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <20231218005802.24df6e51@smilodon-gracilis>
References: <20231214135300.3f65fe0f@smilodon-gracilis>
<ulfvsv$2pb5c$1@solani.org>
<20231214215955.353cd4e4@smilodon-gracilis>
<ulirs5$4fr4$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="535ec5e3c788a87b67d5851602782742";
logging-data="32273"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JVlVZRzJbx1DJUCRS0HUDqrabX9aNwR8="
Cancel-Lock: sha1:xrhDBWFoxvvv9KJWJiLACm7DvA8=
X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu)
 by: Bill Chatfield - Mon, 18 Dec 2023 05:58 UTC

On Sat, 16 Dec 2023 00:43:49 -0000 (UTC)
Oliver Schmidt <ol.sc@web.de> wrote:

> What I state above means that using c is faster/smaller than using b
> like this:
> *c = 2
> *b = 2

You're hard-coding the array into zero-page absolute address 2. Am I
understanding that correctly and is that what you meant?

Re: malloc with cc65

<ulq7su$3g1p$1@solani.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=429&group=comp.sys.apple2.programmer#429

  copy link   Newsgroups: comp.sys.apple2.programmer
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: ol....@web.de (Oliver Schmidt)
Newsgroups: comp.sys.apple2.programmer
Subject: Re: malloc with cc65
Date: Mon, 18 Dec 2023 19:51:58 -0000 (UTC)
Message-ID: <ulq7su$3g1p$1@solani.org>
References: <20231214135300.3f65fe0f@smilodon-gracilis>
<ulfvsv$2pb5c$1@solani.org>
<20231214215955.353cd4e4@smilodon-gracilis>
<ulirs5$4fr4$1@solani.org>
<20231218005802.24df6e51@smilodon-gracilis>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 18 Dec 2023 19:51:58 -0000 (UTC)
Injection-Info: solani.org;
logging-data="114745"; mail-complaints-to="abuse@news.solani.org"
User-Agent: NewsTap/5.5 (iPhone/iPod Touch)
Cancel-Lock: sha1:JLmu1p6cyl7CPo6B0KZ9PSObS34= sha1:jPMcia0OvJ+XJVYYpOd1HSMJMDE=
X-User-ID: eJwNyskRwDAIBLCWzHCFcgDv9l+Co7dcQ2LTwsOczj51AdY9/TG1tXJhNI9Jo/5tMNEylYIlHjL7EgY=
 by: Oliver Schmidt - Mon, 18 Dec 2023 19:51 UTC

Hi Bill,

>> What I state above means that using c is faster/smaller than using b
>> like this:
>> *c = 2
>> *b = 2
>
> You're hard-coding the array into zero-page absolute address 2. Am I
> understanding that correctly and is that what you meant?

No, the syntax above isn't for assigning a value to a pointer. It's for
assigning a value to the address the pointer points to.

Regards,
Oliver

Re: malloc with cc65

<20231220105200.7f518465@smilodon-gracilis>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=430&group=comp.sys.apple2.programmer#430

  copy link   Newsgroups: comp.sys.apple2.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bill_cha...@yahoo.com (Bill Chatfield)
Newsgroups: comp.sys.apple2.programmer
Subject: Re: malloc with cc65
Date: Wed, 20 Dec 2023 10:52:00 -0500
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <20231220105200.7f518465@smilodon-gracilis>
References: <20231214135300.3f65fe0f@smilodon-gracilis>
<ulfvsv$2pb5c$1@solani.org>
<20231214215955.353cd4e4@smilodon-gracilis>
<ulirs5$4fr4$1@solani.org>
<20231218005802.24df6e51@smilodon-gracilis>
<ulq7su$3g1p$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="9b2880d7e63b2832624c336dc274125a";
logging-data="659386"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18nCJFEWhSDBJlCxoOj7HbConJxuphsDZU="
Cancel-Lock: sha1:GiOrpKD7+NnWJYcd54we9gUrh2M=
X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu)
 by: Bill Chatfield - Wed, 20 Dec 2023 15:52 UTC

On Mon, 18 Dec 2023 19:51:58 -0000 (UTC)
Oliver Schmidt <ol.sc@web.de> wrote:

> No, the syntax above isn't for assigning a value to a pointer. It's
> for assigning a value to the address the pointer points to.

OMG, it's been too long since I've written C code. Of, course you're
right and I knew that. The overloading of the * operator in one place
to define a pointer and in another place, the exact opposite, to access
the data pointed to by a pointer, has always perplexed me.

Re: malloc with cc65

<rh2s5k-642.ln1@hendrix.foo>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=433&group=comp.sys.apple2.programmer#433

  copy link   Newsgroups: comp.sys.apple2.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: phayw...@alphalink.com.au (Peter 'Shaggy' Haywood)
Newsgroups: comp.sys.apple2.programmer
Subject: Re: malloc with cc65
Date: Wed, 27 Dec 2023 10:00:43 +1100
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <rh2s5k-642.ln1@hendrix.foo>
References: <20231214135300.3f65fe0f@smilodon-gracilis> <ulfvsv$2pb5c$1@solani.org> <20231214215955.353cd4e4@smilodon-gracilis> <ulirs5$4fr4$1@solani.org> <20231218005802.24df6e51@smilodon-gracilis> <ulq7su$3g1p$1@solani.org> <20231220105200.7f518465@smilodon-gracilis>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Injection-Info: dont-email.me; posting-host="04d8f831a078921e2cc65d62ff1c44a5";
logging-data="3828601"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19q7q+6n+zV6l4vIsJyS0Ve+9nrIQ7H4DA="
User-Agent: KNode/0.10.9
Cancel-Lock: sha1:veBNXO5GcWX+yg12f8ljQ23gnm4=
 by: Peter 'Shaggy&# - Tue, 26 Dec 2023 23:00 UTC

Groovy hepcat Bill Chatfield was jivin' in comp.sys.apple2.programmer on
Thu, 21 Dec 2023 02:52 am. It's a cool scene! Dig it.

> On Mon, 18 Dec 2023 19:51:58 -0000 (UTC)
> Oliver Schmidt <ol.sc@web.de> wrote:
>
>> No, the syntax above isn't for assigning a value to a pointer. It's
>> for assigning a value to the address the pointer points to.
>
> OMG, it's been too long since I've written C code. Of, course you're
> right and I knew that. The overloading of the * operator in one place
> to define a pointer and in another place, the exact opposite, to
> access the data pointed to by a pointer, has always perplexed me.

There's no overloading going on here (notwithstanding its use the
multiplication operator). It's really quite simple. The * operator
means "the object pointed at". When used in a declaration it still
means "the object pointed at". A pointer to foo (where foo is a type)
declaration essentially means, "Declare an object which is a pointer
such that the object pointed at by it is a foo."

--

----- Dig the NEW and IMPROVED news sig!! -----

-------------- Shaggy was here! ---------------
Ain't I'm a dawg!!

Re: malloc with cc65

<20231231115819.34756963@smilodon-gracilis>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=441&group=comp.sys.apple2.programmer#441

  copy link   Newsgroups: comp.sys.apple2.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bill_cha...@yahoo.com (Bill Chatfield)
Newsgroups: comp.sys.apple2.programmer
Subject: Re: malloc with cc65
Date: Sun, 31 Dec 2023 11:58:19 -0500
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <20231231115819.34756963@smilodon-gracilis>
References: <20231214135300.3f65fe0f@smilodon-gracilis>
<ulfvsv$2pb5c$1@solani.org>
<20231214215955.353cd4e4@smilodon-gracilis>
<ulirs5$4fr4$1@solani.org>
<20231218005802.24df6e51@smilodon-gracilis>
<ulq7su$3g1p$1@solani.org>
<20231220105200.7f518465@smilodon-gracilis>
<rh2s5k-642.ln1@hendrix.foo>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="063b83c0b8a146570feff60fb4f2e20b";
logging-data="1881143"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6UGRfbRQFcubizFV3ikgktLyQs+cz3cQ="
Cancel-Lock: sha1:EQ/+6tf4hUKLreh6sEdcMtXm7S0=
X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-redhat-linux-gnu)
 by: Bill Chatfield - Sun, 31 Dec 2023 16:58 UTC

On Wed, 27 Dec 2023 10:00:43 +1100
Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> wrote:

> There's no overloading going on here (notwithstanding its use the
> multiplication operator). It's really quite simple. The * operator
> means "the object pointed at". When used in a declaration it still
> means "the object pointed at". A pointer to foo (where foo is a type)
> declaration essentially means, "Declare an object which is a pointer
> such that the object pointed at by it is a foo."

I see what you're saying, after much mind bending. Maybe that is the
correct way to think about it.

The way I was thinking about it, in the declaration, the * produces a
pointer. In an expression the * produces data from a pointer.

Re: malloc with cc65

<54hf6k-nk2.ln1@hendrix.foo>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=445&group=comp.sys.apple2.programmer#445

  copy link   Newsgroups: comp.sys.apple2.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: phayw...@alphalink.com.au (Peter 'Shaggy' Haywood)
Newsgroups: comp.sys.apple2.programmer
Subject: Re: malloc with cc65
Date: Wed, 03 Jan 2024 19:05:57 +1100
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <54hf6k-nk2.ln1@hendrix.foo>
References: <20231214135300.3f65fe0f@smilodon-gracilis> <ulfvsv$2pb5c$1@solani.org> <20231214215955.353cd4e4@smilodon-gracilis> <ulirs5$4fr4$1@solani.org> <20231218005802.24df6e51@smilodon-gracilis> <ulq7su$3g1p$1@solani.org> <20231220105200.7f518465@smilodon-gracilis> <rh2s5k-642.ln1@hendrix.foo> <20231231115819.34756963@smilodon-gracilis>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Injection-Info: dont-email.me; posting-host="7e5362f06aae1a4afb7bd834d9e29c86";
logging-data="3381186"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18hsXQXoUJQ05KED68NYS6i/MbPeURTDCY="
User-Agent: KNode/0.10.9
Cancel-Lock: sha1:pPjw/U/2OWTFzIyhgK/NVn+Hgwg=
 by: Peter 'Shaggy&# - Wed, 3 Jan 2024 08:05 UTC

Groovy hepcat Bill Chatfield was jivin' in comp.sys.apple2.programmer on
Mon, 1 Jan 2024 03:58 am. It's a cool scene! Dig it.

> On Wed, 27 Dec 2023 10:00:43 +1100
> Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> wrote:
>
>> There's no overloading going on here (notwithstanding its use the
>> multiplication operator). It's really quite simple. The * operator
>> means "the object pointed at". When used in a declaration it still
>> means "the object pointed at". A pointer to foo (where foo is a type)
>> declaration essentially means, "Declare an object which is a pointer
>> such that the object pointed at by it is a foo."
>
> I see what you're saying, after much mind bending. Maybe that is the
> correct way to think about it.
>
> The way I was thinking about it, in the declaration, the * produces a
> pointer. In an expression the * produces data from a pointer.

Dereferences the pointer, yeah, that's basically correct. But you have
to sort-of shift your thinking sideways a bit to understand what's
really going on. A declaration containing an asterisk means "declare an
object that points at foo". That's perhaps a more idiomatic but less
technically precise way of saying "declare an object which is a pointer
such that the object pointed at by it is a foo." The asterisk itself
means "the object pointed at".
It may sound odd at first, but makes perfect sense once you get it. :)

--

----- Dig the NEW and IMPROVED news sig!! -----

-------------- Shaggy was here! ---------------
Ain't I'm a dawg!!

Re: malloc with cc65

<20240201215413.2863694a@laptop-sigfox>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=448&group=comp.sys.apple2.programmer#448

  copy link   Newsgroups: comp.sys.apple2.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: col...@colino.net (Colin Leroy-Mira)
Newsgroups: comp.sys.apple2.programmer
Subject: Re: malloc with cc65
Date: Thu, 1 Feb 2024 21:54:13 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <20240201215413.2863694a@laptop-sigfox>
References: <20231214135300.3f65fe0f@smilodon-gracilis>
<ulfvsv$2pb5c$1@solani.org>
<20231214215955.353cd4e4@smilodon-gracilis>
<ulirs5$4fr4$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="cba2138e6e4c5228737bda7eb4f8b92d";
logging-data="2347502"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1918/gEPIc0WyxiCZVV/O3sbOdHW5zBZDw="
Cancel-Lock: sha1:/iaGU6CXqUxUaESuKvc88CeMjrw=
X-Newsreader: Claws Mail 3.19.1git30 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: Colin Leroy-Mira - Thu, 1 Feb 2024 20:54 UTC

Hi,

>What I state above means that using c is faster/smaller than using b
>like this:
>*c = 2
>*b = 2

Unless you want to iterate, in which case

while (*b) {
... do something with *b...
b++;
}

is much faster than

while (c[i]) {
... do something with c[i]...
i++;
} --
Colin
https://www.colino.net/

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor