|
|
| Author |
Message |
mikep
Joined: 24 Sep 2005
Posts: 765
Location: Austin, TX
|
|
Posted: 17 January 2006, 21:40 PM Post subject: Compiler Optimzation |
|
|
I thought ZBasic allowed increment/decrement of a given memory address like BasicX but I cannot get the compiler to generate it. The following Basic program:
| Code: | Private I as Integer
Sub Main()
I = I + 1
End Sub | generates the ZBasic virtual machine code of: | Code: | PSHA_W 0x00a0 (160)
INC_W
POPA_W 0x00a0 (160)
RET | whereas BasicX generates: | Code: | incI test.i ' (354)
halt |
|
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR
|
|
Posted: 17 January 2006, 23:40 PM Post subject: |
|
|
| Quote: | | I thought ZBasic allowed increment/decrement of a given memory address... |
It did. That code generation optimization was inadvertently disabled in conjunction with some other changes. It has been restored in the current development version but has not yet been completely tested. |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR
|
|
Posted: 24 January 2006, 1:03 AM Post subject: |
|
|
| This problem has been corrected in v1.1.4 of the compiler. See the Download page for the installer containing the updated compiler or the compiler may be downloaded separately. |
|
| Back to top |
|
 |
|