C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Make all data pointers intercompatible

From: Tiago Freire <tmiguelf_at_[hidden]>
Date: Mon, 27 Jan 2025 12:22:22 +0000
Which can be achieved by a raw buffer and memcpy. No need to throw alignment under the bus.

-----Original Message-----
From: Std-Proposals <std-proposals-bounces_at_lists.isocpp.org> On Behalf Of Frederick Virchanza Gotham via Std-Proposals
Sent: Monday, January 27, 2025 1:12 PM
To: std-proposals_at_lists.isocpp.org
Cc: Frederick Virchanza Gotham <cauldwell.thomas_at_gmail.com>
Subject: Re: [std-proposals] Make all data pointers intercompatible

On Mon, Jan 27, 2025 at 10:55 AM Sebastian Wittmeier wrote:
>
> So you want to abolish alignment?


No I'm talking about re-locating an object into unaligned memory for a short time, and then later bringing it back into aligned memory in order to do work with it. I'm not suggesting we do any work with the object while it's unaligned.

I described it in this paper a while back:
http://www.virjacode.com/papers/unaligned_latest.pdf
--
Std-Proposals mailing list
Std-Proposals_at_[hidden]
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals

Received on 2025-01-27 12:22:25