Skip to content

Implements MemoryLoader concept - #21

Merged
keithm-xmos merged 6 commits into
developfrom
feature/memory_loader
Apr 5, 2021
Merged

keithm-xmos merged 6 commits into
developfrom
feature/memory_loader

Conversation

@keithm-xmos

Copy link
Copy Markdown

This PR implement the concept of the MemoryLoader.

The two "reference" XCoreInterpreter class constructor API have not been modified. The reference implementation will now construct the reference MemoryLoader class (allocated in the arena). The reference MemoryLoader object is useful for models stored in any external memory segment (SwMem or ExtMem), however, it is inefficient on models stored in flash SwMem.

A MemoryLoader input argument has been added to the non-reference XCoreInterpreter class constructor. It is anticipated that an application developer would provide a custom MemoryLoader and override the Load() method.

@keithm-xmos
keithm-xmos marked this pull request as draft March 30, 2021 18:14
@keithm-xmos
keithm-xmos marked this pull request as ready for review March 30, 2021 19:45
@keithm-xmos

Copy link
Copy Markdown
Author

Some feedback has been integrated. Still not ready to merge.

Still looking into how to leverage static polymorphism is a clean way.

@lkindrat-xmos lkindrat-xmos left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interface looks good! Some small fixes are needed, mostly in the documentation. Please make sure everything is formatted.

@keithm-xmos
keithm-xmos merged commit 4d103d2 into develop Apr 5, 2021
@keithm-xmos
keithm-xmos deleted the feature/memory_loader branch April 5, 2021 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants