[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] structs not displayed correctly in AVR Studio watch
From: |
Ned Konz |
Subject: |
Re: [avr-gcc-list] structs not displayed correctly in AVR Studio watch |
Date: |
Wed, 17 Mar 2004 16:34:59 -0800 |
User-agent: |
KMail/1.6.1 |
On Wednesday 17 March 2004 3:01 pm, Mossbrucker, Joerg wrote:
> Hi everyone,
>
> it seems that AVR studio (4.08) does not
> display correctly the memory location of
> struct members, if the members themselves are
> arrays and and array of the struct is declared.
>
> Look at the following (short) snippet.
>
> typedef struct {
> uint8_t a;
> uint16_t b;
> uint8_t c[10];
> } test;
Does it make any difference if you use tagged structures?
typedef struct test {
uint8_t a;
uint16_t b;
uint8_t c[10];
} test;
or avoid typedefs altogether?
struct test {
uint8_t a;
uint16_t b;
uint8_t c[10];
};
...
struct test d[3];
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list