How to generate a single c function?

1 visualización (últimos 30 días)
Ion Iturbe
Ion Iturbe el 13 de Abr. de 2016
Hi,
I'm working with Matlab2014a, Embedded coder, generating code from a Simulink model containing some Matlab Function Blocks.
Inside this blocks, I'm calling to some "library" functions (it is my own library). The point is that in the generated C code, there is a copy of the same function for each call to the function made from a different "Matlab Function Block". Only one of them is enaugh to the program to work properly, and the copys are making the size of the generated dll too big to be integrated in my embedded processor.
Atached is the generated code (it is C code even if I modified its extension and write '.m'). Find for "AccionesFinalSwitchCase" text, and you will see several copies of the same function in the code.
How can I made Embedded Coder to optimize the code and generate only one function?
Regards,
Ion

Respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by