Code size
Some of the new SX/B2.0 features such as STR generate inline code. A few uses of STR will considerably bloat ones code. Is there any way to avoid this behavior other than moving calls to a subroutine? Why doesn't the compiler do this for me?
Comments
Yes you put them into a subroutine.
The SX/B compiler is a single pass in-line compiler. It simply translates commands line by line.
This makes the assembler output easy to understand. SX/B was designed to "teach" assembly by examining the SX/B output.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There is a fine line between arrogance and confidence. Make sure you don't cross it...
·
I can presently get this to work because of what STR expects as the first parameter; or am I missing something?
If the first parameter is NOT an array, then it is assumed to be the address of the array.
So you can still but it in a subroutine, but you have to store the parameters because the code for STR overwrites __PARAM1 and __PARAM2 with the "value".
I could change the code generated so that it doesn't do that...
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There is a fine line between arrogance and confidence. Make sure you don't cross it...
·
Thanks, Terry.