This repository has been archived by the owner on May 18, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OMSI] Preparing Code generation for C
Preparing OpenModelica/OMCompiler master for generating OMSUs with `simCodeTarget=omsic`. - Compiler/Template/CodegenCFunctions.tpl - Use new C data structure for generated code for OMSUs. - Added function `crefOMSI` and C basic data types depending on `simCodeTarget`. - Compiler/Template/CodegenUtil.tpl - Added `varKinds` `LOOP_ITERATION()` and `LOOP_SOLVED()`. Those are used for solving algebraic loops. - Compiler/Template/CodegenUtilSimulation.tpl - Added function `template fullPathPrefix(SimCode simCode)` to get `fullPathPrefix` from `SimCode`. Used for generating OMSUs in specified folder. - Return `equationIndex` for `SES_ALGEBRAIC_SYSTEM`. - Added dump functions for `derivativeMatrix` and `OMSIFunction`. - Compiler/Template/SimCodeTV.mo - Added optional `OMSIData` to `SimCode` - Added typeview for new records `OMSIData`, `SES_ALGEBRAIC_SYSTEM`, `DerivativeMatrix`, `OMSI_CONTEXT`, `LOOP_ITERATION`, `LOOP_SOLVED` - Added typeview for new functions `getLocalValueReference`, `localCref2SimVar`, crefPrefixPre - Compiler/Stubs/SimCodeUtil.mo - Added `function localCref2SimVar<A,B>`, `function getValueReference`, `function getLocalValueReference<A>` - Compiler/Template/CodegenOMSIC.tpl - Functions for code generation only used for `simCodeTarget=omsic` - Compiler/Template/CodegenOMSIC_Equations.tpl - Mainly functions for code generation for equation code. Used for C and C++ - Compiler/Template/CodegenOMSI_common.tpl - Shared template functions, used for `simCodeTarget=omsic` and `simCodeTarget=omsicpp` Co-authored-by: niklwors <niiklas.worschech@boschrexroth.de> Co-authored-by: wibraun <wbraun@fh-bielefeld.de> Belonging to [master]: - #2948
- Loading branch information