Date: Fri, 31 Oct 2025 11:24:49 +0100
Hi Sebastian,
On Fri, Oct 31, 2025 at 11:03:32AM +0100, Sebastian Wittmeier via Std-Proposals wrote:
> Using the existing alignment for realloc on microcontrollers:
>
>
> - up to a maximum alignment?
>
>
> - or avoiding over-aligning memory, when allocating
>
> problem is we would not only have to do it for aligned memory or memory meant to be reallocated, but for all allocations
Yeah, I guess it would be better an aligned_realloc(3) with a constraint
that the alignment must be the same as the existing one.
Have a lovely day!
Alex
On Fri, Oct 31, 2025 at 11:03:32AM +0100, Sebastian Wittmeier via Std-Proposals wrote:
> Using the existing alignment for realloc on microcontrollers:
>
>
> - up to a maximum alignment?
>
>
> - or avoiding over-aligning memory, when allocating
>
> problem is we would not only have to do it for aligned memory or memory meant to be reallocated, but for all allocations
Yeah, I guess it would be better an aligned_realloc(3) with a constraint
that the alignment must be the same as the existing one.
Have a lovely day!
Alex
-- <https://www.alejandro-colomar.es> Use port 80 (that is, <...:80/>).
Received on 2025-10-31 10:24:54
