Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
Compiler Optimzation

 
Post new topic   Reply to topic    Forum Index -> ZBasic Language
Author Message
mikep



Joined: 24 Sep 2005
Posts: 765
Location: Austin, TX

Posted: 17 January 2006, 21:40 PM    Post subject: Compiler Optimzation Reply with quote

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: Reply with quote

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: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZBasic Language Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group