Copying code to RAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-02 5:52 AM
When code is copied to RAM (for example the code for rewriting internal flash) how the RAM is allocated? Is it allocated statically or just uses any free space remaining below the stack? I cannot find this in the documentation.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-03 1:36 AM
Hello,
what compiler?
For the Cosmic compiler look for 'Moveable Code' in the user manual (page 286), there is an explanation and a short example.
Regards,
Luca
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-02 7:03 AM
Unless there are specific execution requirements, RAM is allocated in normal fashion, off the stack, from the heap or statically.
Understand how the core executes code, address dependency, control transfer, etc.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-03 1:36 AM
Hello,
what compiler?
For the Cosmic compiler look for 'Moveable Code' in the user manual (page 286), there is an explanation and a short example.
Regards,
Luca
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-04 8:53 PM
Thank you Luca
