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

Re: hv.h hek definition

Thread Previous | Thread Next
Dave Mitchell
November 3, 2016 08:34
Re: hv.h hek definition
Message ID:
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

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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About