On Tue, Sep 15, 2009 at 5:14 AM, Gabe Black <[email protected]> wrote:
>>
>> I'll take a look at trying to do something semi-automatic to split
>> things up.  In addition to putting the decide function in a separate
>> file, maybe we could add a directive like
>>
>>   set decoder_output "<filename>";
>>
>> that would cause all other decoder output (that would normally go to
>> decoder.cc) to use this alternate filename until the next similar
>> directive (if any).  Then we could just sprinkle a few of those in the
>> isa definition at strategic points.
>>
>
> Yeah, being able to parallelize the build and being able to rebuild
> smaller parts of the decoder would make my life easier. The directive
> you proposed is along the lines of one of the possible solutions I'd
> been kicking around. I was worried that it might cause confusion where
> output ended up in a .cc you didn't expect because of a set
> decoder_output in some other .isa file given the fact that separate .isa
> files weren't designed in in all cases, but that might not be a big deal.

I was thinking that you'd probably just want a small number of these
.cc files anyway, so it would probably be sufficient to put the 'set
decoder_output' statements in the top-level .isa file, between the
##includes.  That would keep things less confusing in practice even if
it doesn't eliminate the possibility entirely.

Steve
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to