On 31.01.2015 22:30, Alan Cox wrote:
>> AFAIR some users want to keep the second register set reserved for
>> interrupt handlers or syscalls. However once we have the more flexible
>> handling of iy we will be able to generate code like
>>
>> add iy, de
>> adc hl, bc
>>
>> for 32-bit additions.
> 
> That will certainly help in a few cases. I can understand why some users
> want to keep the alternate registers free, but for those who can use it
> the lack of them really hurts the 32bit code gen.
> 
> Alan

Sure being able to use the alternative register set would be an
improvement (even more for for the Rabbits). But there are some issues:

1) Some users don't want to use the second register set, so not all
would benefit
2) More flexible handling of registers will help both your use case and
many others
3) Using the second register set makes interrupot handlers more
expensive, since
3a) You can't use exx any more to save the registers, making saving of
the first register set more expensive
3b) You also have to save the second register set

That doesn't mean I don't want it implemented, it just means that other
things seem more important to me at the moment.

Philipp


Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to