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