Jump to content
Sign in to follow this  
chmotori

Incorrect Free Memory Reported By Linker

Recommended Posts

Hi,

 

with BoostC version 6.93, using the linker option -rt, the compilation summery reports the same amount both for available and used ROM memory, giving a (wrong) indication that 100% of available memory is being used.

 

The project I'm working with is for PIC18F46K20, I turned on global optimization for the compiler (-O2), optimization for linker (-O1). With no -rt option for the linker, the summary reports:

 

ROM available: 65536 bytes, used: 50308 bytes (76.8%), free: 15228 bytes (23.2%).

 

When I add the option: -rt 0xF7FF, I get:

 

ROM available: 50308 bytes, used: 50308 bytes (100.0%), free: 0 bytes (0.0%).

 

Regards, Elpidio

Share this post


Link to post
Share on other sites
...

When I add the option: -rt 0xF7FF, I get:

 

ROM available: 50308 bytes, used: 50308 bytes (100.0%), free: 0 bytes (0.0%).

 

Regards, Elpidio

I don't see the problem you report:

 

Memory Usage Report

===================

RAM available:3936 bytes, used:31 bytes (0.8%), free:3905 bytes (99.2%),

Heap size:3905 bytes, Heap max single alloc:127 bytes

ROM available:63489 bytes, used:516 bytes (0.9%), free:62973 bytes (99.1%)

 

Regards

Dave

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...