embedded systems developers tools, cross compilers
  Home  |   SwiftX Archive  |   SwiftForth Archive  |

SwiftX optimizer

From: <swiftx_at_teegra.net>
Date: Fri, 2 Jul 2004 07:47:39 -0500 (CDT)

Is there any way to get the SwiftX optimizer to recognize user variables?
User variables usually are not literals as other variables are, so I've
not found a way to get match them using something like:
        OPTIMIZE user-var blah WITH user-var_blah

User variables usage usually produce subroutine calls, but assembly usage
of user variables bypasses the subroutine call and does indexing. I would
like to know if there is a way to bypass the subrotine calls using the
optimizer, and have SwiftX directly lay down the indexed access so that a
call is avoided.

Also, is there any way to optimize something using something like

        OPTIMIZE bleh LITERAL WITH bleh_LIT

or does it always have to be

        OPTIMIZE LITERAL bleh WITH LIT_bleh

I can do

        OPTIMIZE LITERAL bleh WITH LIT_bleh

and then

        OPTIMIZE blah LIT_bleh WITH blah_LIT_bleh

Maybe that is really the only way it can reasonably be done, because
matching LITERALS on both sides would get confusing.

--
Dwight
----------------------------------------------------------------------
swiftx_at_forth.com          The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
For list command help, send subject "help" to swiftx-request_at_forth.com
Message archives are located at http://www.forth.com/archive/swiftx
----------------------------------------------------------------------
This list is a forum for SwiftX users.  For product support and bug 
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Fri Jul 02 2004 - 05:48:58 PDT

This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 03:04:25 PST