BlueM.Sim compilation: Difference between revisions
Jump to navigation
Jump to search
(→Compilation: updated link) |
(→Compilation: update software setup for compilation) |
||
Line 5: | Line 5: | ||
BlueM.Sim is written in FORTRAN. Additional components such as [[BlueM.DLLAdapter]] and [[Wave]] are written in C# and VB.NET. | BlueM.Sim is written in FORTRAN. Additional components such as [[BlueM.DLLAdapter]] and [[Wave]] are written in C# and VB.NET. | ||
Recommended software setup for compiling BlueM.Sim: | |||
* [ | * [https://visualstudio.microsoft.com/ Microsoft Visual Studio 2019] (Community Edition is sufficient) | ||
* [ | ** Select at least the "Desktop Development with C++" component | ||
* [http://www.steema.com/products/teechart/net/overview.html TeeChart for .NET (v4) developer license] | * Intel Fortran Compiler: | ||
** [https://software.intel.com/content/www/us/en/develop/tools/oneapi/base-toolkit/download.html Intel oneAPI Base Toolkit], select at a minimum "Intel Distribution for GDB". This provides the Fortran debugger support for Visual Studio. | |||
** [https://software.intel.com/content/www/us/en/develop/tools/oneapi/hpc-toolkit/download.html Intel oneAPI HPC Toolkit], select at a minimum "Intel Fortran Compiler". | |||
Additional requirements for compiling [[BlueM.Win]] with [[Wave]]: | |||
* [http://www.steema.com/products/teechart/net/overview.html TeeChart for .NET (v4) developer license] | |||
==Compiler settings== | ==Compiler settings== |
Revision as of 04:36, 24 April 2021
BlueM.Sim | Download | Application | Theory | Development
Compilation
BlueM.Sim is written in FORTRAN. Additional components such as BlueM.DLLAdapter and Wave are written in C# and VB.NET.
Recommended software setup for compiling BlueM.Sim:
- Microsoft Visual Studio 2019 (Community Edition is sufficient)
- Select at least the "Desktop Development with C++" component
- Intel Fortran Compiler:
- Intel oneAPI Base Toolkit, select at a minimum "Intel Distribution for GDB". This provides the Fortran debugger support for Visual Studio.
- Intel oneAPI HPC Toolkit, select at a minimum "Intel Fortran Compiler".
Additional requirements for compiling BlueM.Win with Wave:
Compiler settings
Compiler-Einstellungen (Flags), die zur erfolgreichen Kompilierung erforderlich sind.
/assume:byterecl
- Damit Intel Fortran bei unformatierten Dateien (wie den Zeitreihen im BIN-Format) die Record-Länge als bytes und nicht als 4-byte Einheiten (longwords) interpretiert, muss folgender Flag gesetzt werden: "Use Bytes as RECL unit for unformatted files: Yes" (siehe Bild)
Build configurations
The following build configurations for BlueM.Sim are defined in the project file:
- Debug: Debug version, no optimizations
- Release: Full optimization, requires processor supporting Intel® Streaming SIMD Extensions 2 (Intel® SSE2). Auto parallelisation (with threshold 90) ON
- Release_AllCPUs: Full optimization, for generic IA-32 architectures (older processors). Auto parallelisation OFF
Compilation in Eclipse
Bisher ist es noch nicht gelungen, BlueM.Sim erfolgreich in Eclipse zu kompilieren. Hier eine vorläufige (inkomplette) Anleitung:
Installation:
- Eclipse SDK 3.2.1: http://www.eclipse.org/downloads/
- Eclipse C/C++ Development Toolkit (CDT): http://www.eclipse.org/cdt/ (In Eclipse über Menü Help - Software Updates installieren)
- Photran Feature 3.1 Beta: http://www.eclipse.org/photran/ (Inhalt der ZIP-Datei einfach in entsprechende Ordner im Eclipse Installationsverzeichnis kopieren)
- Cygwin mit gdb (GNU Debugger): http://www.cygwin.com/ (gdb bei der Installation unter Devel auswählen)
- make für Windows: http://www.steve.org.uk/Software/make/ (make muss auf den PATH)
- g95 compiler: http://www.g95.org/ (g95 muss auf den PATH)
Eclipse Einstellungen:
- Project Properties: Binary Parser: PE Windows Parser (für Syntaxfehlererkennung)
- Debug As...: C/C++ Local Application: Debugger: Cygwin gdb Debugger und Pfad zu gdb.exe angeben
Es ist (theoretisch) auch möglich, den Intel Fortran Compiler/Debugger in Eclipse einzubinden.