[Top][All Lists]

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

Re: [avr-gcc-list] Problem With Call to Mulsi3

From: Georg-Johann Lay
Subject: Re: [avr-gcc-list] Problem With Call to Mulsi3
Date: Mon, 16 Feb 2009 23:37:47 +0100
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Thomas D. Dean schrieb:

> I have code producing strange results.

Hi. Your code looks strange, too ;-)

>         distance = =895*distance;


> 895*distance generates a call to __mulsi3, multiplying r25:22 by r21:18
> and returning the result in r25:22.
> However, I cannot find where r21:18 are set in the code.  Looking at the
> output of avr-gcc -S, I cannot find any of r18:21.

It was easier to track what's going on if a compileable source was available. You can generate the preprocessed source with -E or -save-temps (will generate %.i and %.s).

To track things the compiler output with -dp -fverbose-asm is more helpful than binutils' dumps.


reply via email to

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