Is it possible to calculate the amount of memory (space) available to any particular program which is being written.
I have the student version of v5.5 and currently writing a program and it would be convenient to know this before getting almost to the end and then have a limiter jump in and say it is out of space.
On that note, just how much space is available initially.
Thanks...........
Version 5.5 memory space
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Version 5.5 memory space
Hello,
You have to compile to hex to work out how much memory on the target device will be consumed. The amount of memory used is then shown in the compiler messages window.
You have to compile to hex to work out how much memory on the target device will be consumed. The amount of memory used is then shown in the compiler messages window.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Version 5.5 memory space
Sorry...misunderstanding here...should have been more precise with my question.
I was referring to the flowcode program.
When I was using the demo version, there were limitations and as I understood it, there were limits placed on the student version when I bought this also.
The limitations are what I was referring to.......
So can you point me to the restrictions (if any) that will limit the code size..???
Thanks....
I was referring to the flowcode program.
When I was using the demo version, there were limitations and as I understood it, there were limits placed on the student version when I bought this also.
The limitations are what I was referring to.......
So can you point me to the restrictions (if any) that will limit the code size..???
Thanks....
Re: Version 5.5 memory space
By the number of views there are many others that are also curious about this.....
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
Re: Version 5.5 memory space
Check this version 5 data sheet, page 12. Home version equals student version.
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
Re: Version 5.5 memory space
Yes, I saw that before but it doesn't mean much if one cannot apply it in some form or other.
4K code limit but how does one measure that..??
Click on a saved program file which so far shows no sign of any limit and it's size is 20k so it can't be done that way.
Any other ideas..??
4K code limit but how does one measure that..??
Click on a saved program file which so far shows no sign of any limit and it's size is 20k so it can't be done that way.
Any other ideas..??
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
Re: Version 5.5 memory space
When you compile the code there will be a memory usage report, something like:
You need to look at the ROM used. It is 10286 in this example and would exceed the limits for you license.
Code: Select all
Memory Usage Report
===================
RAM available:1536 bytes, used:183 bytes (12.0%), free:1353 bytes (88.0%),
Heap size:1353 bytes, Heap max single alloc:127 bytes
ROM available:32768 bytes, used:10286 bytes (31.4%), free:22482 bytes (68.6%)
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
Re: Version 5.5 memory space
There is no option to display bytes if you are using PIC12/PIC16 devices. For PIC18 the default is bytes (as can be seen in the example I posted earlier).
The information displayed is using the same unit the limit is expressed in, so the limit for PIC12/PIC16 is 4K words and for PIC18 it is 8K bytes (for student/home versions of Flowcode). This means there is no need to have the information displayed in bytes.
The information displayed is using the same unit the limit is expressed in, so the limit for PIC12/PIC16 is 4K words and for PIC18 it is 8K bytes (for student/home versions of Flowcode). This means there is no need to have the information displayed in bytes.
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis