[En-Nut-Discussion] H8/300 Question: Print Format Specifier Forsize_t
Harald Kipp
harald.kipp at egnite.de
Thu Mar 18 11:30:08 CET 2004
There had been a post one year ago from Mike
Cornelius
http://www.egnite.de/pipermail/en-nut-discussion/2003-July/000944.html
Jan, what's your opinion about switching to -mint32?
I agree with Mike, that it is really odd to have
sizeof(int) differing from sizeof(size_t).
Many standard routines handle memory sizes as
ints, directly or indirectly. E.g. they return
a number of bytes as an integer in order to
flag errors as -1 (size_t is unsigned).
Harald
At 08:36 18.03.2004 +0100, you wrote:
>Jan wrote:
>
> >I suspect that situation with ARMs is simialar, i.e. I *suspect* that
> >int in THUMB mode is 16 bit.
> >But I don't know ARMs, until then I have seen them only on photos and in
> >a few commercial devices. :-)
>
>As thumb mode is only a condensed ARM code, data accesses are still 32 bit.
>So it's still a 32 bit machine but with 16 bit code access.
>This cripples the architecture alot, but reduces code size and increases
>speed
>when executing from 16 bit memories.
>
>Yepp, that's right I don't like it.
>
>/bengan
>
>_______________________________________________
>En-Nut-Discussion mailing list
>En-Nut-Discussion at egnite.de
>http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
More information about the En-Nut-Discussion
mailing list