avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] stack(?) problems


From: Paulo Marques
Subject: Re: [avr-gcc-list] stack(?) problems
Date: Mon, 06 Aug 2007 12:36:46 +0100
User-agent: Thunderbird 1.5.0.12 (X11/20070509)

Tobias Pflug wrote:
Hi,

Hi,

[...]
[After the value assignments of course]

(gdb) print p
$1 = (int *) 0x800000
(gdb) print &test
$2 = (int *) 0x804020

I can't provide the full code because of copyright/NDA issues. I'm using
gcc-4.1.0 Code was tried with -O1 and -Os.

Both -O1 and -Os can reorder instructions, and might fool the debugger completely.

Any ideas what's going wrong and what I could try?

You should try to produce a small test case that shows the same behavior, and show its assembly.

The thing is, what you've shown so far isn't really a problem. If your program is in fact misbehaving, what you've shown might not be the cause at all.

I hope this helps,

--
Paulo Marques
Software Development Department - Grupo PIE, S.A.
Phone: +351 252 290600, Fax: +351 252 290601
Web: www.grupopie.com

"There cannot be a crisis today; my schedule is already full."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]