= MinGW Tools for Windows = = MinGW Tools for Windows = Windows users can use MinGW RTEMS tools. These tool will generate the same application code for RTEMS as the tools on Linux or Cygwin. MinGW tools use the native Windows runtime rather than access Windows via the POSIX interface Cygwin provides. MinGW tools are faster than the Cygwin equivalent and are not confused by Cygwin mount points. Compiler errors will show a Windows path rather than a Cygwin path. The RTEMS MinGW tools are packaged in Windows installers. The latest tools are: * [ftp://www.rtems.org/pub/rtems/windows/betas/rtems4.7-arm-20060707-1.exe ARM] * [ftp://www.rtems.org/pub/rtems/windows/betas/rtems4.7-i386-20060707-1.exe i386] * [ftp://www.rtems.org/pub/rtems/windows/betas/rtems4.7-m68k-20060707-1.exe m68k] * [ftp://www.rtems.org/pub/rtems/windows/betas/rtems4.7-mips-20060707-1.exe mips] * [ftp://www.rtems.org/pub/rtems/windows/betas/rtems4.7-powerpc-20060707-1.exe PowerPC] * [ftp://www.rtems.org/pub/rtems/windows/betas/rtems4.7-sparc-20060707-1.exe sparc] Click on the link above to install the tools. The tools are still being worked on so things may changed. These tools and missing currenty missing GDB. This is to be added next. To test the tools open a Command prompt (cmd) set the path to the installed location (default is c:\rtems\bin) and enter the GCC command for your tool set. For example the ARM GCC command is: > arm-rtems4.7-gcc = Setting Up MinGW = The tools as installed to not need any extra to work. You could use any available make program or tools to build an RTEMS application. If you want some excellent tools to work with the MinGW project provides some. You can find the MinGW project at [http://www.mingw.org/]. The MinGW project has 2 packages we are interested in using. The first is MinGW package which contains a Windows native GCC compiler, and GNU make (called mingw32-make). The second package is MSYS for Minimal SYStem. It is a stand alone package based on the excellent and sucessful Cygwin package but simplifed to providing a self hosted mingw32 target POSIX style environment. It provides a shell with enough functionality to run configure scripts from the autooconf package. It is simpler to install and setup than the larger more complex Cygwin package. * [http://prdownloads.sf.net/mingw/MinGW-5.0.2.exe?download MinGW Tools] * [http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download MSYS Installer] Click on the above and install each package. The default settings for these package should be ok for most users. If you have Cygwin installed, or another package which contains Cygwin you should consider remove any paths from your global path variable to them and using batch files to set paths specifically. It can be confusing if you end up mixing them. An example batch file for RTEMS is: > type rtems.bat @echo off set PATH=c:\rtems;c:\mingw\bin;%PATH% set PROMPT=RTEMS(arm) $P$G If "x%OS%x" == "xwindows_NTx" Goto WinNT_Title exit :WinNT_Title Title RTEMS(arm) doskey > Nul Place this in the install point and create a Desktop short cut or Quick Start short cut.