wiki:WritingEfficientMetaModelica

Version 1 (modified by Adrian Pop, 11 years ago) ( diff )

--

Writing efficient MetaModelica code

In the bootstrapped compiler, together with the extended MetaModelica/Modelica things you can use there are some restrictions:

  1. avoid matchcontinue as much as possible and use match instead, combined with if (if needed).
  2. write tail recursive functions (if a function calls itself it should do that as last thing in the then part).

Note: See TracWiki for help on using the wiki.