----- Original Message ----- From: "Wouter van Ooijen" To: "'Microcontroller discussion list - Public.'" Sent: Tuesday, February 15, 2005 3:23 AM Subject: RE: [PIC] Bug in Microchip mcc18 std library? >> A quick rat hole - does C18 not allow any pointer to freely >> point to ROM >> and RAM ? Would explain some strange constructs in the C18 >> program that >> I have been converting ! > > AFAIK is does not. > > Wouter van Ooijen It does not, and for a very good reason. Since ROM and RAM are completely separate address spaces, that don't even have the same pointer width (RAM = 12 bits, ROM = 16 or 22? bits), there would be quite a bit of overhead to create 'universal' pointers. I suppose it could be done using a 24-bit format where the upper bit indicated which memory type to access, but I just think that would be ugly (and slow). Bob Ammerman RAm Systems -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist