comp.lang.ada
 help / color / mirror / Atom feed
* Type size vs. actual size difference.
@ 2000-03-20  0:00 Bruce Detter
  2000-03-20  0:00 ` Vladimir Olensky
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bruce Detter @ 2000-03-20  0:00 UTC (permalink / raw)


Using GNAT 3.12 on Win NT 4.0.  We have defined a record that has a length
of 214 bytes.  The type'Size attribute reports 214, but when we declare a
variable of the record type (X : Type) the size attribute X'Size reports
216.  It appears the actual variable size takes into account adjustments to
word boundaries (and of course the type'Size attribute can't do this).  Is
there a preprocessor command or pragma command that will force byte boundary
alignment so that the type size agrees with the actual size?

Thanks...
--
Bruce C. Detter III






^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-03-20  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-20  0:00 Type size vs. actual size difference Bruce Detter
2000-03-20  0:00 ` Vladimir Olensky
2000-03-20  0:00   ` Robert Dewar
2000-03-20  0:00     ` Vladimir Olensky
2000-03-20  0:00 ` Stanley R. Allen
2000-03-20  0:00 ` tmoran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox