gnupic: improved banksel and pagsel


Previous by date: 23 Sep 2004 12:03:06 +0100 A new feature?, Julian Green
Next by date: 23 Sep 2004 12:03:06 +0100 COD question, nisma.gmx.net
Previous in thread: 23 Sep 2004 12:03:06 +0100 improved banksel and pagsel, Craig Franklin
Next in thread: 23 Sep 2004 12:03:06 +0100 Re: improved banksel and pagsel, Craig Franklin

Subject: Re: improved banksel and pagsel
From: "Gabor Kiss [Bitman]" ####@####.####
Date: 23 Sep 2004 12:03:06 +0100
Message-Id: <Pine.LNX.4.58.0409231253310.12723@nelson.cdata.hu>

> The banksel and pagesel directives in gputils have been improved for 12
> bit and 14 bit devices.  Before the directives manipulated all the bits
> for 4 banks and 4 pages.  Now they only manipulate the bits for the
> pages and banks available on that device.

Dear Craig,

Is it possible to make some compile time optimizations with banksel?
Now I had to write tricky macros that keeps current select bits
in mind and changes the only the bits really necessary when I select
a bank. (I.e. switching from bank0 to bank1 requires 1 "bsf" instruction only.)

Yes, it is trivial, that principally there is no universal solution.
However even a limited version of banksel optimizer could
reduce code size and increase speed by omitting unnecessary
bit set/clear instructions at the expense of final code size
could not be strictly planned.

What is your opinion?

Cheers

Gabor
-- 
E-mail = m-mail * c-mail ^ 2

Previous by date: 23 Sep 2004 12:03:06 +0100 A new feature?, Julian Green
Next by date: 23 Sep 2004 12:03:06 +0100 COD question, nisma.gmx.net
Previous in thread: 23 Sep 2004 12:03:06 +0100 improved banksel and pagsel, Craig Franklin
Next in thread: 23 Sep 2004 12:03:06 +0100 Re: improved banksel and pagsel, Craig Franklin


Powered by ezmlm-browse 0.20.