--- layout: fc_discuss_archives title: Message 44 from Frama-C-discuss on April 2014 ---
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] alignment assumptions?



Dear All,

I have C source code (which I did not write myself) that on xLP64 uses
the least significant bits of a pointer to a struct to store
additional data under the assumption that the struct is aligned and
those bits would all be 0 for the pointer.

One obvious option would be to add an extra field to store those
additional bytes. This would blow up the memory for maintaining the
data structure by 1/3.

What are other options?

Thanks in advance,

Marko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20140430/e05eedef/attachment.pgp>