Re: Microchip Introduces First 16-bit Microcontroller Product Line - the PIC24
- From: Paul Burke <paul@xxxxxxxxxx>
- Date: Mon, 28 Nov 2005 13:47:24 +0000
Mark L Pappin wrote:
"Michael N. Moran" <mike@xxxxxxxxxxx> writes:OK. Please explain to me how one *without going outside ofthe C/C++ language standard* declare an "unsigned char" for the AVR that lives in the AVR ROM space and another that lives in the AVR RAM space?
unsigned char lives_in_RAM = 'a'; const unsigned char lives_in_ROM = 'b';
This really is one of the major problems of C. The construct above doesn't work with, for example, the Raisonance 8051 compiler, where even if you declare a const, it still assumes it's in the internal RAM unless you precede it with "code".
This kind of thing makes porting code a bugger, even a debugger, and it's time the industry got together to work out a standard. While you're at it, define a portable way of allocating objects to specified locations.
Paul Burke .
- Follow-Ups:
- Re: Microchip Introduces First 16-bit Microcontroller Product Line - the PIC24
- From: Hans-Bernhard Broeker
- Re: Microchip Introduces First 16-bit Microcontroller Product Line - the PIC24
- Prev by Date: Re: New toothbrush with "onboard computer"
- Next by Date: Butterfly as thermostat
- Previous by thread: AT91RM9200- SDRAM interface
- Next by thread: Re: Microchip Introduces First 16-bit Microcontroller Product Line - the PIC24
- Index(es):