[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] stack(?) problems
From: |
Gre7g Luterman |
Subject: |
Re: [avr-gcc-list] stack(?) problems |
Date: |
Mon, 6 Aug 2007 08:47:07 -0700 (PDT) |
--- Tobias Pflug <address@hidden> wrote:
> int test;
> int *p;
>
> int main()
> {
> test = 0;
> p = &test;
> ...
> }
>
> (gdb) print p
> $1 = (int *) 0x800000
> (gdb) print &test
> $2 = (int *) 0x804020
1. Do an avr-objdump to figure out which address is
correct, 0x800000 or 0x804020.
2. Look through the assembly code that generates this
address and show us that.
Good luck,
Gre7g
____________________________________________________________________________________Ready
for the edge of your seat?
Check out tonight's top picks on Yahoo! TV.
http://tv.yahoo.com/