Peter, I took a quick peek today in the CC2430 datasheet and saw what you mean. But beware, allthough code and xdata pointers will probably work, idata pointers are not automatically converted to the correct xdata address.
data char c; char* p = &c; //do not expect this to work Maarten > There are some special cases where generic pointer are not needed at all. > For ex. cc2430 has all data areas mapped to sections of xdata. So everything > can be accessed with xdata pointer. > But indeed, this is very processor specific. > > I made a quick patch to the sdcc adding an option to make unqulified > pointers xdata. > > Cheers, > Peter > > http://www.pkuhar.com/ > http://www.modula.si > skype: pkuhar > > > On Wed, Feb 11, 2009 at 9:39 AM, Maarten Brock > <sourceforge.br...@dse.nl>wrote: > > > Peter, > > > > That is currently impossible because how would you > > otherwise create a generic pointer? There is no > > 'generic' keyword. > > > > Maarten > > > > > Hi, > > > > > > How to make a default pointer type xdata pointer and not generic as it is > > > currently. > > > > > > > > > Cheers, > > > Peter Kuhar > > > > > > > > > http://www.pkuhar.com/ > > > skype: pkuhar > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Create and Deploy Rich Internet Apps outside the browser with > > Adobe(R)AIR(TM) > > software. With Adobe AIR, Ajax developers can use existing skills and code > > to > > build responsive, highly engaging applications that combine the power of > > local > > resources and data with the reach of the web. Download the Adobe AIR SDK > > and > > Ajax docs to start building applications today- > > http://p.sf.net/sfu/adobe-com > > _______________________________________________ > > Sdcc-user mailing list > > Sdcc-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/sdcc-user > > > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user