[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Data RAM Pointers
From: |
Keith Gudger |
Subject: |
[avr-gcc-list] Data RAM Pointers |
Date: |
Fri, 5 Nov 2004 16:08:41 -0800 (PST) |
I have a question about data pointers and gcc / gdb / simulavr.
A real data pointer is 16 bits long. In GCC land, data pointers are 24
bits long (there is an extra byte with "0x80" in it). I have a structure
which has an element:
uint32_t* ram_add;
16 bits get reserved for this pointer. The value written into it is
0x800108. When later using this address, I realize that this is not a
problem for the "real" chip, but what happens in gdb / simulavr?
Thanks.
Keith
- [avr-gcc-list] Data RAM Pointers,
Keith Gudger <=