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
RAM Usage Reporting

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



Joined: 15 Oct 2006
Posts: 329
Location: Long Island, New York

Posted: 02 February 2008, 1:45 AM    Post subject: RAM Usage Reporting Reply with quote

The compiler output tells me that my application uses 472 bytes of RAM, but the listing file reports an extra 3112 bytes, for a total of 3584 bytes. I'm assuming that the discrepancy is due to system calls and other internal workings of the virtual machine.

I'm curious though, if the compiler output could reflect this true number, i.e. give me a breakdown of the actual RAM usage rather than just the amount used by the variables in my application.

-Don
Back to top
mikep



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

Posted: 02 February 2008, 2:16 AM    Post subject: Reply with quote

I get this type of output:
Code:
Code: 35 bytes, RAM: 1 byte, Persistent memory: 0 bytes
Target Device: ZX24a, Minimum VM version: v1.1.2
RAM size: 3584, heap size: 256

Did you misread the listing file? Perhaps you can post an example (sans code) so we can see what you mean.
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2593
Location: Portland, OR

Posted: 02 February 2008, 2:18 AM    Post subject: Re: RAM Usage Reporting Reply with quote

Don_Kirby wrote:
The compiler output tells me that my application uses 472 bytes of RAM, but the listing file reports an extra 3112 bytes, for a total of 3584 bytes.

Are you perhaps referring to the last line of the .lst file that looks something like this:
Code:
RAM size: 3584, heap size: 256

That is indicating the amount of User RAM that is available, not how much is being used.

Don_Kirby wrote:
[Can the compiler] give me a breakdown of the actual RAM usage rather than just the amount used by the variables in my application.
You'll find more information on RAM use in the .map file. For each task, it gives an estimate of the stack space needed. For each routine, it itemized the local variables (that contribute to stack use).
Back to top
Don_Kirby



Joined: 15 Oct 2006
Posts: 329
Location: Long Island, New York

Posted: 02 February 2008, 2:22 AM    Post subject: Re: RAM Usage Reporting Reply with quote

dkinzer wrote:

That is indicating the amount of User RAM that is available, not how much is being used.


That makes much more sense.

-Don
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