gnupic: improved banksel and pagsel
Subject:
Re: improved banksel and pagsel
From:
Craig Franklin ####@####.####
Date:
24 Sep 2004 02:35:53 +0100
Message-Id: <41528AF9.5000107@users.sourceforge.net>
Gabor Kiss [Bitman] wrote:
>>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?
>
>
>
I think Eric Smith suggested that one a year or two ago.
I am open to the idea, but it won't be my first priority. Maybe someone
else has some time.
This one is a keeper. Please create a feature request.
>Cheers
>
>Gabor
>
>