Version 5.5 memory space

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
bluejets
Posts: 12
Joined: Fri Oct 12, 2012 1:10 pm

Version 5.5 memory space

Post by bluejets »

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

User avatar
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

Post by Benj »

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.

bluejets
Posts: 12
Joined: Fri Oct 12, 2012 1:10 pm

Re: Version 5.5 memory space

Post by bluejets »

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

bluejets
Posts: 12
Joined: Fri Oct 12, 2012 1:10 pm

Re: Version 5.5 memory space

Post by bluejets »

By the number of views there are many others that are also curious about this.....

kersing
Valued Contributor
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

Post by kersing »

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

bluejets
Posts: 12
Joined: Fri Oct 12, 2012 1:10 pm

Re: Version 5.5 memory space

Post by bluejets »

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..??

kersing
Valued Contributor
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

Post by kersing »

When you compile the code there will be a memory usage report, something like:

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%)
You need to look at the ROM used. It is 10286 in this example and would exceed the limits for you license.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Kenrix2
Flowcode v5 User
Posts: 211
Joined: Tue Feb 19, 2013 9:51 pm
Has thanked: 72 times
Been thanked: 177 times

Re: Version 5.5 memory space

Post by Kenrix2 »

Kersing,
How do you get the compiler message ROM available: to display bytes instead of the default, words?

kersing
Valued Contributor
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

Post by kersing »

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.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Post Reply