From: SourceForge.net <no...@so...> - 2012-05-20 09:21:54
|
Feature Requests item #3526268, was opened at 2012-05-13 02:32 Message generated for change (Comment added) made by spth You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=350599&aid=3526268&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: hc08 port Group: None Status: Open Priority: 5 Private: No Submitted By: Philipp Klaus Krause (spth) Assigned to: Nobody/Anonymous (nobody) Summary: Right operand for GET_VALUE_AT_ADDRESS Initial Comment: Supporting a right operand for GET_VALUE_AT_ADDRESS would result in more efficient code genated for the hc08, which has a suitable x-relative addressing mode. This would help with aggregate and union accesses. Philipp ---------------------------------------------------------------------- >Comment By: Philipp Klaus Krause (spth) Date: 2012-05-20 02:21 Message: This one is probably the on eoptimization with the highest gain among teh easy-to-implement ones. It would trasform code like ; genPlus lda *_insertion_sort_sloc0_1_0 add #_spm_sprites_list tax clra adc #>_spm_sprites_list psha pulh ; genPointerGet ldx ,x into ; genPointerGet ldx *_insertion_sort_sloc0_1_0 clrh ldx #_spm_sprites_list, x Reducing code size from 13 to 5 bytes. And register a is freed, so it can be used for other purposes. This and similar ones are very common code sequences. Philipp ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=350599&aid=3526268&group_id=599 |