Re: Voting for FastCode rules on memory reading
On 9 May 2005 12:26:14 -0700, "Avatar Zondertau" <
XXXX@XXXXX.COM>
writes:
Quote
Unsure (not clear from post): Anders
That's because it is not very clear in my head either :-)
My first reaction is: "No way, you shouldn't allow this! It definitely
has a 'bad smell'."
Next: "But if we allow reading the full DWORD containing the last byte,
why not the full page?"
So,
1) How sure can we be that it will 'always' be allowed to read a full
page - at least some (very much) older computers had permission bits for
every memory cell!
2) Can the CPU actually, physically, access anything smaller than a
DWORD? Or will the memory access be a full DWORD even when I ask for a
byte?
After this short discussion with myself, I will cast my vote:
No, I don't think the rule should be changed.
(But feel free to ignore my opinion, as it is not built on any solid
fact, it is just an opinion)
--
Anders Isaksson, Sweden
BlockCAD:
web.telia.com/~u16122508/proglego.htm
Gallery:
web.telia.com/~u16122508/gallery/index.htm