BlueM.Sim compilation

From BlueM
Revision as of 04:46, 24 April 2021 by Froehlich (talk | contribs) (→‎Compiler settings: translation)
Jump to navigation Jump to search

BlueM_icon.png 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:

Additional requirements for compiling BlueM.Win with Wave:

Compiler settings

Use Bytes as RECL

Required compiler settings (Flags):

  • /assume:byterecl
This causes Intel Fortran to interpret the record length of unformatted files (e.g. time series in BIN-Format) in bytes instead of in 4 byte units (longwords). This flag is set by setting Use Bytes as RECL unit for unformatted files: to Yes (see image).

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

Eclipse screenshot

Bisher ist es noch nicht gelungen, BlueM.Sim erfolgreich in Eclipse zu kompilieren. Hier eine vorläufige (inkomplette) Anleitung:

Installation:

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.