From: John M. <ato...@gm...> - 2010-11-04 18:46:44
|
On Thu, Nov 4, 2010 at 10:32 AM, Weddington, Eric <Eri...@at... > wrote: > > > If we want to have generic pointers (like Keil, SDCC...) we > > will also need 32 bit pointer. Generic pointers allow the > > user to create a pointer that can access all the address space's. > > I'm not sure that something like that would ever be used effectively on the > AVR. At the moment, I suggest avoiding generic pointers. > It isn't efficient but it allows you to simplify your code. Without generic pointers multiply functions, doing the same thing, are needed. Like *printf*vs. *printf_P*. Needing multiply functions that do basically the same thing also adds overhead. Generic pointers for the smaller AVR's would only need 16/24 bits. |