[root]/c_runtime/java_interface
src
(0 files, 0 lines)
org
(0 files, 0 lines)
openmodelica
(0 files, 0 lines)
corba
(0 files, 0 lines)
parser
(0 files, 0 lines)
JavaDefinitions
(0 files, 0 lines)
test
(0 files, 0 lines)
test_files
(0 files, 0 lines)
Author | Changes | Lines of Code | Lines per Change |
---|---|---|---|
Totals | 54 (100.0%) | 268 (100.0%) | 4.9 |
sjoelund.se | 42 (77.8%) | 268 (100.0%) | 6.3 |
stebr461 | 1 (1.9%) | 0 (0.0%) | 0.0 |
perost | 1 (1.9%) | 0 (0.0%) | 0.0 |
adrpo | 10 (18.5%) | 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 10 files:
- Fix svn-eol-style on Makefiles
1 lines of code changed in 1 file:
- Adding -source flag to java_interface makefiles since eclipse javac default to version 4.
4 lines of code changed in 2 files:
- Added antlr_license.txt. Missing from last commit.
0 lines of code changed in 1 file:
- Added trunk/Makefile.common, and restructured Makefile and Makefile.omdev.mingw
- Fixed lots of weird install targets for files
- Moved commands.xml, etc files from bin to share/omnotebook, share/omshell.
- Moved ptplot.jar from bin to share/omc/java.
- Moved ptplot_license.txt from bin to share/
- Moved omc_helptext.txt from bin to share/doc/omc
- Added antlr_license.txt
- Moved OPENMODELICA/include to OPENMODELICAHOME/omc/include
- This way we won't override system libs/includes if we install to /usr
- Did the same for /lib
- Left to do: Move scripts from bin to usr/share/omc/scripts
- Updated OMNotebook and OMShell to reflect new paths of xml files.
- Updated doPlot commands to reflect the new location of ptplot.jar
37 lines of code changed in 5 files:
- Adding OMC_API-HowTo to install target.
- Updating java_interface makefiles (better clean-up and works without setting JAVA_HOME).
- Removing temporary antlr grammar files when configure script fails.
- Fixed doc install path for UNIX systems.
- Remove generated code when doing make clean in Compiler/runtime, Compiler/absyn_builder.
- Remove generated makefile in c_runtime/sendData.
10 lines of code changed in 3 files:
- Added c_runtime/Makefile.common.
- You now only need to change one file when you add headers.
3 lines of code changed in 1 file:
- Removed some cp -u lines from Makefiles. They don't work in OSX (GNU extension).
- Added x86_64-OSX version of liblpsolve55.dylib.
- Most regular Modelica testcases work in 64-bit OSX. MetaModelica testcases seem to fail, however (probably due to not using the 64-bit datatypes in the headers).
1 lines of code changed in 1 file:
Java Interface:
- Fixed CLASS_EXTENDS typo for AstAsCorbaString
- Added better error messages for ModelicaRecord.java
0 lines of code changed in 1 file:
Java Interface:
- Optionally send types when creating records from Map (required for uniontypes to work correctly)
0 lines of code changed in 1 file:
- Updated modelica_java.jar
0 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).
0 lines of code changed in 2 files:
Java Interface:
- JarCreator: Check if file already exists, and throw exception.
+ This happens on Windows systems if uniontypes and records have the same case-insensitive name.
- DefinitionsCreator: Fix for when OPENMODELICA environment-variable doesn't contain a trailing directory-separator.
- The Java testsuite now generates files in the proper order, but doesn't work on Windows due to case-insensitivity issues.
0 lines of code changed in 1 file:
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.
0 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.
0 lines of code changed in 1 file:
- 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.
3 lines of code changed in 2 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
2 lines of code changed in 2 files:
Added RTOpts.debugFlag guards to lessen overhead when debug output isn't used.
0 lines of code changed in 1 file:
- Fixed encoding issues
0 lines of code changed in 1 file:
- Spelling error
1 lines of code changed in 1 file:
- Adding modelica_java.jar to the repository (so JDK isn't required to compile OpenModelica)
- Adding c_runtime/java_interface to the default make system. (If no JDK is installed, modelica_java.jar is simply copied to /build/...)
27 lines of code changed in 4 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
36 lines of code changed in 3 files:
- Fixed the testsuite Makefile (missed a backslash at the end)
- Merged getDefinitions Interactive API function from the Bootstrapping branch
- Fixed some of the Java-related issues OMC has in Windows (don't try to fprintf to stderr before calling abort() - in Windows the string will not get printed)
- It will be necessary to set JAVA_HOME to a JDK if you want to run the java testsuite in Windows. If you call "java" directly, it will load Java from system32, which is a JRE and not a JDK (which means you can't call javac from it). Why Sun decided to install both JRE and JDK by default when downloading a JDK, I do not know.
6 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
137 lines of code changed in 6 files: