[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Antworten: Re: Antworten: Re: [avr-gcc-list] Problem with the calling co
From: |
Martin Krüger |
Subject: |
Antworten: Re: Antworten: Re: [avr-gcc-list] Problem with the calling convention |
Date: |
Wed, 14 Jul 2004 17:33:02 GMT |
Ursprüngliche Nachricht -------
Von: address@hidden (Joerg Wunsch)
Datum: Wed, 14 Jul 2004 18:06:57 +0200 (MET DST)
Betreff: Re: Antworten: Re: [avr-gcc-list] Problem with the calling convention
"Martin Krüger " wrote:
> avr-gcc -c -Os test.c (without optimization the code seems to be ok)
>
> avr-objdump -D test.o
>You could have called avr-gcc with -S directly instead. ;-)
My personal preference.
I like the output of objdump better :-)
> The we will see the call to testfunc32
>
> mov r25, r19
> mov r24, r18
> mov r23, r17
> mov r22, r16
> rcall .+0
>That's quite OK.
> This code is executed after all the other function-calls.
> Any of these could have modified the values of r19,r18
>Sure, but since they are not used again afterwards, this is not a
>problem.
It is a problem because the possibly modified content of r18/r19 is
passed to testfunc32() .
>Please submit a GCC bug report for this (but use my addition, since it
>makes the bug obvious).
Do you have any hint how to do so?
I never made a GCC bug report.
Martin Kruger
Sichern Sie sich Ihre Premium E-Mail-Adresse bei Lycos: eigene Domain, 1000 MB
Mailspeicher, 100 free SMS, POP3, Weiterleitung und Hightech Spamschutz:
http://mail.lycos.de
- Antworten: Re: Antworten: Re: [avr-gcc-list] Problem with the calling convention,
Martin Krüger <=