develooper Front page | perl.perl5.porters | Postings from November 2016

Re: hv.h hek definition

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
November 3, 2016 08:34
Subject:
Re: hv.h hek definition
Message ID:
20161103083404.GD15954@iabyn.com
On Thu, Nov 03, 2016 at 08:52:54AM +0100, demerphq wrote:
> So if you could help me to understand the exact requirements for your
> platform I would be grateful.

Many RISC processors have strict alignment requirements - at the very
least, for a field of size 2^N to be aligned on a 2^N boundary - so
hek_flags would have to be 8 bytes for an 8-byte pointer. This would apply
to SPARC too.

I guess it might be possible to keep the flags at 1 byte, but for for the
"HEK key is an SV" case to use a different cast alignment to store the SV
pointer.

-- 
My Dad used to say 'always fight fire with fire', which is probably why
he got thrown out of the fire brigade.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About