* "sizeof" a record
@ 2001-09-10 19:24 mop
2001-09-10 20:23 ` Marin David Condic
2001-09-10 20:40 ` David C. Hoos
0 siblings, 2 replies; 3+ messages in thread
From: mop @ 2001-09-10 19:24 UTC (permalink / raw)
how do i obtain the "sizeof" a record?
I've got 8 bytes of data for one record
and 517 bytes for another
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: "sizeof" a record
2001-09-10 19:24 "sizeof" a record mop
@ 2001-09-10 20:23 ` Marin David Condic
2001-09-10 20:40 ` David C. Hoos
1 sibling, 0 replies; 3+ messages in thread
From: Marin David Condic @ 2001-09-10 20:23 UTC (permalink / raw)
You should be able to do Record_Type'Size or Record_Object'Size which
returns the size in bits. You probably want to divide by System.Storage_Unit
to get the size in bytes. (If your machine has System.Storage_Unit = 8)
Read through Annex K of the ARM - you'll find lots of useful attributes
there that are especially handy for low level programming or dealing with
machine dependencies.
MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas www.pacemicro.com
Enabling the digital revolution
e-Mail: marin.condic@pacemicro.com
Web: http://www.mcondic.com/
"mop" <mop65715@pegasus.cc.ucf.edu> wrote in message
news:9nj40t$qbr$1@zeus.orl.lmco.com...
>
> how do i obtain the "sizeof" a record?
>
> I've got 8 bytes of data for one record
> and 517 bytes for another
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: "sizeof" a record
2001-09-10 19:24 "sizeof" a record mop
2001-09-10 20:23 ` Marin David Condic
@ 2001-09-10 20:40 ` David C. Hoos
1 sibling, 0 replies; 3+ messages in thread
From: David C. Hoos @ 2001-09-10 20:40 UTC (permalink / raw)
To: comp.lang.ada
Please refer to theAda Language Reference Manual, Annex K
paragraphs 223-229, inclusive.
----- Original Message -----
From: "mop" <mop65715@pegasus.cc.ucf.edu>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: Monday, September 10, 2001 2:24 PM
Subject: "sizeof" a record
>
> how do i obtain the "sizeof" a record?
>
> I've got 8 bytes of data for one record
> and 517 bytes for another
>
>
>
>
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-09-10 20:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-10 19:24 "sizeof" a record mop
2001-09-10 20:23 ` Marin David Condic
2001-09-10 20:40 ` David C. Hoos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox