I'm sorry, but I have to contradict this. At one time I did have the idea to implement it, but have never made it that far. The define _gptrget.c is not SDCC_MODEL_MEDIUM but has an extra D (DSDCC_MODEL_MEDIUM) (disabled). If I had implemented this I certainly would have put it in the manual. I still think it's a good idea though and maybe one day in the future...
Sorry for the bad news, Maarten > On Fri, 02 Jan 2009 14:54:26 +0100 > Frieder Ferlemann <frieder.ferlem...@web.de> wrote: > > > Hi Mark, > > > > Maarten Brock schrieb: > > > The difference is that medium model puts the variables > > > in pdata and large in xdata. Pdata (max. 256 bytes) is > > > smaller than xdata (max. 64kB) but can be accessed with > > > two pointers (r0,r1) what might result in smaller code > > > than xdata which only can use dptr. > > > > Additionally the generic pointer is squeezed(*) into two bytes for > > the medium model. (instead of three bytes for both small and large > > model) > > > > This limits the address range that can be accessed by generic > > pointers to: code memory: 0x0000 .. 0x7fff (32k) > > xdata memory: 0x0000 .. 0x3fff (16k) > > Wow, this sounds extremely important to know--this should definitely be > put in the SDCC manual. > > Regards, > Colin > ------------------------------------------------------------------------------ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user