[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [f-cpu] dynamic code reuse



> To answer your question it will be very hard to add to gcc.
> One need to decide that "this" is block of code which will
> probably produce repetable result ....
>

Is not possible to use the profiling tools to do it ? It could use the
(-arc*) option of gcc that compile in 2 pass and a run.

nicO

> On Mon, 8 Dec 2003, Nicolas Boulay wrote:
>
>> Imagine the instruction :
>>
>> WATCH R1,R2,R3, [PC + #imm] W1, W2
>>
>> R1,R2,R3, W1,W2 are register #imm is an immediat
>>
>> Those instruction act as :
>>
>> if (def cache{R1,R2,R3,PC})
>> {
>>  	fetch (PC + #imm)
>> 	(W1,W2) = cache{R1,R2,R3,PC}
>> }
>> else
>> {       fetch (PC+1)
>> 	cache(R1,R2,R3,PC) = (W1,W2)@[PC + #imm] <- the result of registre
>> W1,W2
>>                                                       are cached at this
>> point
>> }
>>
>> It explicitly keep a result in a specific cache.
>>
>> nicO

*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/