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

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

AW: AW: AW: [avr-gcc-list] avr-gcc bug: global register variable isbroke


From: Haase Bjoern (PT-BEU/MKP5) *
Subject: AW: AW: AW: [avr-gcc-list] avr-gcc bug: global register variable isbroken
Date: Thu, 2 Dec 2004 13:24:50 +0100

Sorry, I have probably misspelled the exact function name. The real name is

function_arg

In fact the things that you should consider to change to your desired values are

1.) First register to use for variable passing:

Source line
#define FIRST_CUM_REG 26

2.) Number of registers available for variable passing 
source line in function    "init_cumulative_args"

com->nregs = 18


That is, the last register used for variable passing seems to be 26-18 = 8 and 
not 10
as I thought.


Yours,

Björn 


-----Ursprüngliche Nachricht-----
Von: Klaus Rudolph [mailto:address@hidden
Gesendet: Donnerstag, 2. Dezember 2004 13:17
An: Haase Bjoern (PT-BEU/MKP5) *
Cc: address@hidden
Betreff: Re: AW: AW: [avr-gcc-list] avr-gcc bug: global register
variable isbroken


> I have had a brief look at the register allocation for variables
> yesterday:
> 
> - The register allocation starts at r24:r25 for the first function
> parameter and for each additional
> parameter it seems that the register number is simply decreased as long as
> r10 is reached.

Where you have find that please? Normaly the compiler have some lists
REG_ALLOC_ORDER for example which
declare the order of using them. But where you have find that
10 is the last one? And the generated code is using registers under 10
anyway.
Please give me a function name or a file/line#.
 

> There is no code that could handle "holes" within the register range r10
> ... r25 that would be
> generated by additional registers declared "fixed".
> 

Normaly that is not to be part of the target specific things. Therfore 
I think the lists are made... not used in avr? 


> Change the #define symbols that specify the first register and last
> register for parameter passing 
> that are used by the function "funct_arg".
>
And where to find funct_arg? My grep is dead?

Bye
   Klaus

-- 
GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail
+++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++



reply via email to

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