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

Alignment question

Thread Next
Father Chrysostomos
August 2, 2016 23:07
Alignment question
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About