gnupic: SDCC PIC Port: Register Banking


Previous by date: 13 Jun 2002 14:32:39 -0000 Re: gpasm question, banksel & 16f877 (fwd), Gy. Molnar Attila
Next by date: 13 Jun 2002 14:32:39 -0000 porting from mpasm, Deva Seetharam
Previous in thread:
Next in thread:

Subject: SDCC PIC Port: Register Banking
From: Scott Dattalo ####@####.####
Date: 13 Jun 2002 14:32:39 -0000
Message-Id: <Pine.LNX.4.44.0206130658420.7056-100000@ruckus.brouhaha.com>

I've just commit'd a new Register Banking algorithm to CVS. This new 
algorithm is more robust in setting/clearing the bank select bits.

The old algorithm just looked at the code as one continuous stream of pic
instructions and inserted bank select bits where ever required. This was
flawed because very seldom do the instructions execute as one continuous
stream - there's always branching. 

This version now examines the code flow and takes into account the state 
of the register banking.

---

As an aside, this new version also introduces infrastructure for 
simplifying flow analysis. After going back and fixing some pointer bugs, 
I'll start pursuing that holy grail of optimizing based on flow. 

Scott


Previous by date: 13 Jun 2002 14:32:39 -0000 Re: gpasm question, banksel & 16f877 (fwd), Gy. Molnar Attila
Next by date: 13 Jun 2002 14:32:39 -0000 porting from mpasm, Deva Seetharam
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.