From: Kevin S. <sch...@kw...> - 2010-11-02 03:57:13
|
First, thanks for the all work you've done, Borja. >Another thing, i dont know how feasible is doing this, but should we make >program and data space addrs transparent to the user? If you're asking what I think you're asking, notation for this will be part of the next version of the C standard. The approved final draft of this, TR 18037 "Extensions to support embedded processors", is available at <http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1275.pdf>. See "Named Address Spaces" in section 5. I believe LLVM can now support this directly. In the long run, I think it would be ideal to have code pointers be either two or three bytes depending on the processor model. This would imply supporting 24-bit integers as well; it looks like LLVM can do this now, though it couldn't when I looked at using it for AVR a couple years ago. It would also be nice to have one-byte pointers (i.e. an additional address space) to efficiently reference I/O registers. -- Kevin Schoedel <sch...@kw...> VA3TCS |