Matlab Coder Memory usage
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello everyone.
I have just downloaded this app (MATLAB Coder) and I am having problems while embedding the code. Due to my RAM memory limitations I can't go on with my project.
I would like to know how can I see how much memory my code needs, and also how can I improve memory efficiency.
Thanks in advance.
0 commentaires
Réponses (2)
Ryan Livingston
le 1 Août 2019
Without specifics of your project it's hard to give precise suggestions. The MATLAB Coder documentation has a performance section:
that contins a memory usage sub-section with some suggestions.
The code generation report with Embedded Coder will show you stack usage estimates:
Finally if too much heap memory is being used consider using a memory profiler, like Massif, on the generated code to see where the memory usage is coming from. Once you find that you can use the Embedded Coder code traceability features:
to map the problematic C or C++ back to the corresponding MATLAB code. That will give you insight into what part(s) of your MATLAB algorithm are causing high memory usage.
0 commentaires
Voir également
Catégories
En savoir plus sur MATLAB Coder dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!