[root]/c_runtime/java_interface/src/org/openmodelica
corba
(0 files, 0 lines)
parser
(0 files, 0 lines)
JavaDefinitions
(0 files, 0 lines)
test
(0 files, 0 lines)
Author | Changes | Lines of Code | Lines per Change |
---|---|---|---|
Totals | 81 (100.0%) | 1763 (100.0%) | 21.7 |
sjoelund.se | 59 (72.8%) | 1763 (100.0%) | 29.8 |
adrpo | 22 (27.2%) | 0 (0.0%) | 0.0 |
- GOT RID OF the old trunk/c_runtime and old templates SimCodeC.tpl/SimCodeFMU.tpl
- HIGHLY RECOMMENDED make clean
- renamed SimCodeXXX.tpl CodegenXXX.tpl
- merged the needed things from SimCodeC.tpl into CodegenQSS.tpl.
- all tests except the usual mishaps go.
- targeted all trunk/c_runtime references used in
Makefiles / C (Qt OMPlot) / Other files to their SimulationRuntime/ counterparts.
0 lines of code changed in 22 files:
Java Interface:
- Fixed CLASS_EXTENDS typo for AstAsCorbaString
- Added better error messages for ModelicaRecord.java
11 lines of code changed in 1 file:
Java Interface:
- Optionally send types when creating records from Map (required for uniontypes to work correctly)
27 lines of code changed in 1 file:
Java Interface:
- When handling uniontypes, we now add the _UT suffix so we can compile e.g. Absyn.mo definitions to a jar-file on the Windows platform.
- Removed the dependency on Sun JreSocketFactory (we won't need long CORBA timeouts if we send long strings through files anyway).
3 lines of code changed in 2 files:
Java Interface
- Added parse(Reader) to ModelicaOption
+ Fixed the Java testsuite
- Added testcase for getAstAsCorbaString(filename)
+ Uses TankPID.mo, and a very short Java function.
+ Could also use CORBA to get the string, but that requires a little bit more code.
It's better to pass the string using filename anyway, since 32-bit architectures are limited to 16MB strings in OpenModelica.
5 lines of code changed in 1 file:
Changes to the OMC-Java interface (Java code)
- Added OMCStringParser.parse(File f) functions.
- Made parse functions for Record, Array, Tuple public.
- Fixed ComplexTypeDefinitions for generic types.
23 lines of code changed in 4 files:
- Changes to the OMC-Java interface (Java code)
- Replaced the ANTLR grammar for parsing the CORBA communication
+ Max heap size reduced by 66% (down to 1GB from 3GB on 64-bit platforms)
+ Time to parse reduced to 33-50% of the original time taken (depending on typed or untyped parsing)
+ Added proper typed parsing also for list,tuple and Option
- Added the TypeSpec.java class to represent complex types fully
- Added missing JreSocketFactory
- Parsing an AST with type information is no longer done in two phases
- Updated the templated to generate jar files to reflect the changes above
- MSL 3.1 can now be parsed fully, with full type information
+ Typecasting needs to be done for tuples due to Java weaknesses,
but no longer using ModelicaAny.cast - standard (T)myTuple.get(0) should work.
+ The string is possibly too large for 32-bit OpenModelica to handle.
However, it is no longer manipulated within OpenModelica, so it might accept it. Needs to be tested.
534 lines of code changed in 17 files:
- Changed to the OMC-Java interface (Java code)
+ Added printToBuffer to all ModelicaObjects so toString() is almost instant even for large strings
+ Changed the interface of ModelicaRecord slightly
- We now cache field names and types in order to reduce the memory consumption of an AST by ~75%
- All records now need to have all fieldnames and types set when created
+ OMCorba.g now generates line and column numbers for all errors
313 lines of code changed in 12 files:
- JarCreator: Transforms backslashes of paths in zip-files to frontslashes. That way both javac.exe and java.exe work properly in Windows.
- testsuite/java/JavaExt.java: Escape the string so backslashes are parsed by OpenModelica.
- testsuite/{java,records}/rtest: Changed to an rtest that is not parallelized since Windows dll's hate that. (Also updated the mos-files since the old one requires // endResult
- testsuite/java/Makefile: Better Windows-support using JAVA_HOME
- c_runtime/java_interface/Makefile*: Better Windows-support using JAVA_HOME
2 lines of code changed in 2 files:
- Merged c_runtime from Bootstrapping
- Fixed simulation_result.cpp performance issues (<< endl flushes the buffer, \n does not)
- Added the Java-specific runtimes (C and Java)
- Changes to read_write.{c,h} for record-in-record, NORETCALL and MetaModelica types
845 lines of code changed in 19 files: