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

Alignment question

Thread Next
From:
Father Chrysostomos
Date:
August 2, 2016 23:07
Subject:
Alignment question
Message ID:
20160802230726.17472.qmail@lists-nntp.develooper.com
Alignment question

The parser struct has a member, sublex_info, which is defined in terms
of another struct, consisting of U8, U16, OP* and SV*.  If this mem-
ber is preceded in the parser struct by, say, I32 and U8, will those
four (I32, U8, U8, U16) be combined and stored in the space of
one pointer?  Or will the sublex_info member always be pointer-
aligned itself?

(Commit 6745174b left holes, which I am looking to fill in, but I
believe there were already holes.)


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