This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: conditional registers per function, possible or not?
- To: Andi Kleen <ak at suse dot de>
- Subject: Re: conditional registers per function, possible or not?
- From: Dylan_S_Cuthbert at hq dot scei dot sony dot co dot jp
- Date: Fri, 23 Jun 2000 00:48:10 +0900
- cc: gcc at gcc dot gnu dot org
Also, you have to program in assembler :-( I want to be able to configure
things a little easier.
Regards
Dylan Cuthbert
Andi Kleen <ak@suse.de> 2000/06/23 12:37:52 AM
宛先: Dylan S Cuthbert/SCEI@SCEI
cc: gcc@gcc.gnu.org
件名: Re: conditional registers per function, possible or not?
Dylan_S_Cuthbert@hq.scei.sony.co.jp writes:
> I didn't get a response to my last question along these lines:
>
> Is it at all possible within the current gcc frame work to be able to use
> conditional registers selected on a per function basis?
>
> Something like this perhaps:
>
> int SpecialFunction( ) __attribute__ ((registers_begin( $8))) __attribute__
> ((registers_end( $20)));
>
> Ideas?
Linux kernel does this sometimes. It just uses an asm with the appropiate
clobbers and codes the function call in inline assembler.
Disadvantage: not schedulable
-Andi