This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Does malloc tell us anything about alignment modulo k?
On Jul 15, 2004, at 10:42 AM, Paolo Carlini wrote:
Daniel Berlin wrote:
I'm working on some trivial alignment analysis.
Malloc'd memory is supposed to be "aligned suitably for any data
type".
Does this actually tell us anything about whether the result is
aligned modulo k (IE aligned to a k byte boundary)?
Hi.
In the glibc docs you can find these sentences (which I have always
trusted):
I'm trying to avoid introducing a target hook/macro if possible, but it
seems it may not be possible, since all osen/platforms seem to
guarantee something, but not the same thing :).