Various software sizes calculation
Thomas Doerfler
Thomas.Doerfler at embedded-brains.de
Tue Oct 6 09:05:21 UTC 2009
Ralf,
thank you for your list. Surely you are right that it does not make
sense to rely on a certain size when coding an application. But in
various applications size matters. So if you have let's say 128KByte of
RAM in your (space?) system and you need an answer to the question
"which data types might be appropriate if I want to save an array of
16000 measured data samples" then getting this information may be quite
important. ok?
wkr,
Thomas.
Ralf Corsepius schrieb:
> On 10/06/2009 08:21 AM, Thomas Doerfler wrote:
>> Ralf,
>>
>> the original question was specific for a LEON2/Sparc project, so it
>> should be possible to be explicit concerning the variable sizes.
>
> You leave me no choice but to be more explicit:
>
> The sizes are compile-time constants
> => they are not supposed to be of interest to anybody.
>
> Any assumption on their sizes is nothing but a random temporary shapshot
> of these compile-time constants.
>
> These sizes may change depending upon compilation flags, the compiler
> changing its behavior and other factors.
>
> Wrt. the leon2, this is what is currently being used:
> SIZEOF_CHAR 1
> SIZEOF_SHORT 2
> SIZEOF_INT 4
> SIZEOF_LONG 4
> SIZEOF_LONG_LONG 8
> SIZEOF_FLOAT 4
> SIZEOF_DOUBLE 8
> SIZEOF_LONG_DOUBLE 8
> SIZEOF_VOIDP 4
>
>
> Ralf
>
>
>
>
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
--
--------------------------------------------
Embedded Brains GmbH
Thomas Doerfler Obere Lagerstr. 30
D-82178 Puchheim Germany
email: Thomas.Doerfler at embedded-brains.de
Phone: +49-89-18908079-2
Fax: +49-89-18908079-9
More information about the users
mailing list