Generate C Function wih inline keyword
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello there,
I want to create a subsustem in simulink which can generate a function (in C code) with the inline keyword, I am using Real Time Workshop to generate the C code.
Is that possible with RTW?
Kindly suggest some solution.
Regards Prashant
0 commentaires
Réponses (2)
Kaustubha Govind
le 3 Mar 2011
I don't think this functionality is currently available. Please contact Tech Support to verify this, and also submit an enhancement request.
0 commentaires
MarkB
le 21 Mar 2011
This is probably not necessary. For any atomic subsystem, you can choose the type of code generated for it. The "inline" option in the subsystem's parameter dialog should produce inlined code, which is what the "inline" command would have done anyway. This approach ought to produce more portable code since "inline" isn't available on all C compilers.
0 commentaires
Voir également
Catégories
En savoir plus sur Simulink Coder dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!