Heap access/memory management.

Post your requests and ideas on the future development of mikroC PRO for AVR.
Post Reply
Author
Message
JerryHRoss
Posts: 41
Joined: 31 Jan 2008 14:27

Heap access/memory management.

#1 Post by JerryHRoss » 02 Aug 2009 15:09

To use this compiler to build an RTOS like FreeRTOS, the developer needs access to the remaining free RAM/heap. Access to the addresses of the beginning and end of free RAM is required and at least malloc and free functions to allow for dynamic allocation and freeing of memory.

Granted, I could allocate a large array of bytes and write my own malloc and free functions but that is problematic in that it requires adjusting the size of the array as RAM usage increases with added features/functionality. Not to mention managing heap fragmentation, etc.

It would be much better if the compiler/library functions took care of those issues.

Any chance of this happening soon?

milutin.apostolovic
mikroElektronika team
Posts: 88
Joined: 03 Jun 2009 14:22

#2 Post by milutin.apostolovic » 03 Aug 2009 16:28

Hi,

It is under consideration.
Thank you for your feedback.


Best regards.

JerryHRoss
Posts: 41
Joined: 31 Jan 2008 14:27

#3 Post by JerryHRoss » 07 Aug 2009 16:05

Oh! I forgot: another need is the ability to flag a function (with a pragma? or keyword "task") that tells the compiler not to create a stack frame for that function.

User avatar
mileta.miletic
mikroElektronika team
Posts: 493
Joined: 05 Jun 2009 14:46
Location: Belgrade, Serbia
Contact:

#4 Post by mileta.miletic » 10 Aug 2009 14:46

Hi,
Thanks for suggestion, but this is not planned for implementation.
Regards,
Mileta

Anuradha
Posts: 40
Joined: 16 Apr 2010 16:13

Re:

#5 Post by Anuradha » 04 May 2010 09:49

milutin.apostolovic wrote:Hi,

It is under consideration.
Thank you for your feedback.


Best regards.
Is it implemented now.

How can i use malloc() function with MikroC PRO for pic.

Thank you

Post Reply

Return to “mikroC PRO for AVR Wish List”