Re: g++, strange behavior issues

"Gavin Lambert" <[email protected]>
Newsgroups gmane.linux.uclinux.devel
Message-ID <031b01cf2863$72ce74c0$586b5e40$@com>
Quoth Larry Baker:
> Yes, this is indeed what can happen on a system like uClinux that does 
> not have an MMU (memory management unit).  The tiny controller chips 
> that uClinux targets do not protect any part of the memory from being 
> accidentally corrupted.  As long as the memory being accessed exists, 
> there is no hardware fence between a user program and the rest of memory.

It's especially fun when address 0 is valid memory (which is not uncommon).
Then you don't get crashes from null pointer accesses, which most developers
expect (and some can be lazy about protecting against, thinking that they'll
find it during debugging).

I always try to configure the target device's memory map such that addresses
near 0 remain invalid, whenever possible -- but some targets don't support
that.


_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.