* Avr-Gcc Register attribute
@ 2010-02-02 10:01 Pronholio
2010-02-02 16:10 ` Ian Lance Taylor
0 siblings, 1 reply; 3+ messages in thread
From: Pronholio @ 2010-02-02 10:01 UTC (permalink / raw)
To: gcc-help
Hi all,
is there any possibilty to really hard bind a variable to a general purpose
reg?
When i try binding it with
register uint8_t test asm("r3") it can still be moved to the sram. It is
critical for my work, to have it strictly bound to a reg.
Is there any way to achieve that?
i ve tried it with avr-gcc 4.3.3 as well as with a 4.4.1 version with the
IRA features.
Where could i find the declaration of the normal "register" attribute in the
gcc_binutil-sources? Could it be a solution to define a new attribute
including hard constraints for specific regs? Is there any documentation to
that topic?
Thanks alot
Greets
--
View this message in context: http://old.nabble.com/Avr-Gcc-Register-attribute-tp27416276p27416276.html
Sent from the gcc - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Avr-Gcc Register attribute
2010-02-02 10:01 Avr-Gcc Register attribute Pronholio
@ 2010-02-02 16:10 ` Ian Lance Taylor
2010-02-03 10:17 ` Pronholio
0 siblings, 1 reply; 3+ messages in thread
From: Ian Lance Taylor @ 2010-02-02 16:10 UTC (permalink / raw)
To: Pronholio; +Cc: gcc-help
Pronholio <b3089867@uggsrock.com> writes:
> is there any possibilty to really hard bind a variable to a general purpose
> reg?
Yes, but you have to make it a global register variable. The
documentation discusses this issue.
Ian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Avr-Gcc Register attribute
2010-02-02 16:10 ` Ian Lance Taylor
@ 2010-02-03 10:17 ` Pronholio
0 siblings, 0 replies; 3+ messages in thread
From: Pronholio @ 2010-02-03 10:17 UTC (permalink / raw)
To: gcc-help
Ian Lance Taylor-3 wrote:
>
> Pronholio <b3089867@uggsrock.com> writes:
>
>> is there any possibilty to really hard bind a variable to a general
>> purpose
>> reg?
>
> Yes, but you have to make it a global register variable. The
> documentation discusses this issue.
>
> Ian
>
>
Took that one out of the documentation =)
register uint8_t test asm("r3")
--
View this message in context: http://old.nabble.com/Avr-Gcc-Register-attribute-tp27416276p27433995.html
Sent from the gcc - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-02-03 10:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-02 10:01 Avr-Gcc Register attribute Pronholio
2010-02-02 16:10 ` Ian Lance Taylor
2010-02-03 10:17 ` Pronholio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).