BlueM.Sim compilation: Difference between revisions

From BlueM
Jump to navigation Jump to search
mNo edit summary
(aktualisiert)
Line 1: Line 1:
{{BlueM.Sim nav}}
{{BlueM.Sim nav}}


==Compiler==
BlueM.Sim is written in FORTRAN. Additional components such as [[BlueM.DLLAdapter]] and [[Wave]] are written in C# and VB.NET.
Der Quellcode von BlueM.Sim ist standardmäßig auf den [http://www.intel.com/cd/software/products/asmo-na/eng/compilers/278834.htm Intel Fortran Compiler] ausgelegt. Der Code enthält momentan einige Intel-spezifische Funktionen.


==Intel Fortran==
Requirements for compiling BlueM.Sim:
* [http://www.microsoft.com/visualstudio/en-us/products/professional/default.mspx Microsoft Visual Studio 2008 Professional] (the Standard Edition may be enough, but has not been tested)
* [http://www.intel.com/cd/software/products/asmo-na/eng/compilers/278834.htm Intel Fortran Compiler] v11
* [http://www.steema.com/products/teechart/net/overview.html TeeChart for .NET (v3) developer license] (only required for compiling [[Wave]])
 
==Compiler settings==
[[Bild:RECLinBytes.jpg|thumb|Use Bytes as RECL]]
[[Bild:RECLinBytes.jpg|thumb|Use Bytes as RECL]]
Compiler-Einstellungen (''Flags''), die zur erfolgreichen Kompilierung erforderlich sind.  
Compiler-Einstellungen (''Flags''), die zur erfolgreichen Kompilierung erforderlich sind.  
Line 11: Line 15:
<br clear="all"/>
<br clear="all"/>


==Eclipse==
==Compilation in Eclipse==
[[Bild:Eclipse.gif|thumb|Eclipse screenshot]]
[[Bild:Eclipse.gif|thumb|Eclipse screenshot]]
Die [http://www.eclipse.org Eclipse] Entwicklungsumgebung ist nützlich, um die Dokumentstruktur (sprich: Liste von Funktionen) von Fortran Quelldateien anzusehen. Ausserdem bietet Eclipse noch weitergehende Syntaxfehlererkennung und Anbindung an Subversion. Kompilierung in Eclipse erfordert ein Makefile. Bisher ist es aber noch nicht gelungen, BlueM erfolgreich in Eclipse zu kompilieren. Hier eine vorläufige (inkomplette) Anleitung:
Bisher ist es noch nicht gelungen, BlueM.Sim erfolgreich in [http://www.eclipse.org Eclipse] zu kompilieren. Hier eine vorläufige (inkomplette) Anleitung:


<u>Installation:</u>
<u>Installation:</u>

Revision as of 01:17, 8 May 2009

BlueM_icon.png BlueM.Sim | Downloads | Application | Theory | Development

BlueM.Sim is written in FORTRAN. Additional components such as BlueM.DLLAdapter and Wave are written in C# and VB.NET.

Requirements for compiling BlueM.Sim:

Compiler settings

Use Bytes as RECL

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)


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.