Global Sources
EE Times-India
Stay in touch with EE Times India
EE Times-India > Embedded

Allocate memory efficiently in Matlab-to-C code

Posted: 18 Nov 2008     Print Version  Bookmark and Share

Keywords:Matlab  Matlab-to-C  embedded systems  memory usgae 

When developing algorithms for communication, signal processing and controls, Matlab is the de facto standard development environment. Matlab's syntax and tool-box functions facilitate algorithm exploration and refinement.

At some point, however, a Matlab algorithm must be ported to another implementation, typically C. Embedded systems, in which many algorithms eventually end up as software, can impose additional requirements on memory usage. This article looks at how data storage in Matlab translates to memory allocation in C for embedded systems.

Translating Matlab code to C is not a straightforward process. Several articles have tackled translation techniques, and tools now exist for automatic Matlab-to-C translation. In embedded software, one of the biggest concerns is memory usage.

In C, the developer has the choice of allocating memory in static memory, on the stack or dynamically (on the heap). Each allocation method has its advantages and disadvantages.

View the PDF document for more information.

Comment on "Allocate memory efficiently in Matla..."
*  You can enter [0] more charecters.
*Verify code:


Visit Asia Webinars to learn about the latest in technology and get practical design tips.


Go to top             Connect on Facebook      Follow us on Twitter      Follow us on Orkut

Back to Top