TREX Set-Up Guide: Creating a TREX Executable File for Windows

Similar documents
CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2005

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2010

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2003

WRITING CONSOLE APPLICATIONS IN C

EECE.2160: ECE Application Programming Spring 2018 Programming Assignment #1: A Simple C Program Due Monday, 1/29/18, 11:59:59 PM

Visual C++ Tutorial. For Introduction to Programming with C++ By Y. Daniel Liang

Introduction. Key features and lab exercises to familiarize new users to the Visual environment

Opening Microsoft Visual Studio. On Microsoft Windows Vista and XP to open the visual studio do the following:

MS Visual Studio.Net 2008 Tutorial

Installing and getting started with Visual Studio for C programming in Windows.

Getting Started with Visual Studio

Code::Blocks Student Manual

Lab 4: Introduction to Programming

Using OpenGL & GLUT in Visual Studio.NET 2003

Welcome Application. Introduction to C++ Programming (Solutions) 2004 by Deitel & Associates, Inc. All Rights Reserved.

Published on Online Documentation for Altium Products (

Estimating Accelerator Performance and Events

EDEM Dynamics Coupling Quick Start Guide

dotdefender for IIS Installation Guide

Mend for Eclipse quick start guide local analysis

HOW TO USE CODE::BLOCKS IDE FOR COMPUTER PROGRAMMING LABORATORY SESSIONS

Install Visual Studio Community Version 2017

How to debug Wcem.dll with.net Studio

Module 3: Working with C/C++

Appendix M: Introduction to Microsoft Visual C Express Edition

Eclipse Tutorial. For Introduction to Java Programming By Y. Daniel Liang

Copyright 2017 Softerra, Ltd. All rights reserved

Building AMD64 Applications with the Microsoft Platform SDK. Developer Application Note

AN 834: Developing for the Intel HLS Compiler with an IDE

DEVELOPING OOSIML SIMULATION MODELS. Using Codeblocks

HPC on Windows. Visual Studio 2010 and ISV Software

Lab 1: Introduction to C Programming. (Creating a program using the Microsoft developer Studio, Compiling and Linking)

softmc Simulator Installation Guide Revision 1.2

Batch Renderer for DAZ Studio

For additional information, please consult the Read-Me and Help documentation or contact Electro-Voice or Dynacord technical support.

Laboratory Assignment #3 Eclipse CDT

Tutorial : creating a Max/MSP external project for Windows using Visual Studio

Code::Blocks Student Manual

Introduction to the IDE

Creating a MOM 2005 Peformance Graph Report From a Template

IFS Data Migration Excel Add-In

Compiling MapleSim C-Code in Visual C Express

Module 4: Working with MPI

APPLICATION COMMON OPERATING ENVIRONMENT (APPCOE)

If this is the first time you have run SSMS, I recommend setting up the startup options so that the environment is set up the way you want it.

IMPLEMENTING SCL PROGRAMS. Using Codeblocks

Optional Eclipse Workspace Configurations

Use xtimecomposer to simulate a program

Downloading & Installing Audacity

Nagios XI Monitoring Windows Event Logs With NagEventLog

Load testing with WAPT: Quick Start Guide

NetBeans Tutorial. For Introduction to Java Programming By Y. Daniel Liang. This tutorial applies to NetBeans 6, 7, or a higher version.

12 Lead ECG CardioVu Software Installation Guide

Recommended Settings for Internet Explorer

RVDS 3.0 Introductory Tutorial

Zend Studio 3.0. Quick Start Guide

ELEC 4200 Lab#0 Tutorial

52 Remote Target. Simulation. Chapter

Perceptive Interact for EpicCare Link

People are more likely to open and read a letter than a generic letter addressed to sir, madam or to whom it may concern.

TOP SERVER V5 CLIENT CONNECTIVITY ROCKWELL FACTORYTALK VIEW STUDIO. Table of Contents

Setting up a RIS (Remote Installation Service) server (Windows Server 2003 SP 1) Updated February 13 th, 2008.

Setting up a Project and Debugging with Visual Studio

OOSIML SIMULATION MODELS. On Windows and Linux

Getting Started with the JNBridgePro Plug-ins for Visual Studio and Eclipse

and 32 bit for 32 bit. If you don t pay attention to this, there will be unexpected behavior in the ISE software and thing may not work properly!

SCRIV NETWORK WINDOWS HOT WALLET MASTERNODE SETUP GUIDE DETAILED

Installation and Upgrade Guide Zend Studio 9.x

How to build MPTK with CMake SUMMARY

Check the Desktop development with C++ in the install options. You may want to take 15 minutes to try the Hello World C++ tutorial:

COMPUWARE TEST DRIVE TOPAZ WORKBENCH WORKSHOP. Automated Unit Testing

ImageNow Interact for Microsoft SharePoint Installation, Setup, and User Guide

M30118 Rev. A IOM HART DD IOM. Instructions for copying HART DD files to 375/475 using Field Communicator Easy Upgrade Utility 3.5

S/MIME on Good for Enterprise MS Online Certificate Status Protocol. Installation and Configuration Notes. Updated: November 10, 2011

Installation and Upgrade Guide Zend Studio 9.x

Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio

Eclipse CDT Tutorial. Eclipse CDT Homepage: Tutorial written by: James D Aniello

HOW TO BUILD YOUR FIRST ROBOT

JCreator. Starting JCreator

VPS instruction. Connecting to the Remote Desktop. Dear Client,

FOCUS ON REAL DESIGN AUTOMATE THE REST CUSTOMTOOLS AUTOMATIC FILENAMING

Developing Intelligent Apps

Using Expressions Web to Edit an FCNet Department Web Site

Engr 123 Spring 2018 Notes on Visual Studio

Getting Started with the Deployment Console and Deploying the Clients Per PXE Network Booting using their MAC address. Quick Guide

Vb Net Tutorial For Beginners Visual Studio 2010 Express Windows Service Template

Colligo Manager for Outlook User Guide. User Guide

Lab 3-2: Exploring the Heap

SQL Server 2005: Reporting Services

Using Templates. 5.4 Using Templates

INFORMATICS LABORATORY WORK #2

Registering for Microsoft ELMS for Imagine Software ( )

Composer Help. Import and Export

Table of Contents CONSOLE BASED APPLICATION 2

Configuring Visual Studio 2017 with SFML Game Engine

Modifying image file contents with Ghost Explorer. This section includes the following topics:

CompuCal Version 6 Installation Guide (Windows 2008/R2) Release

Installation Instructions for Release 5.1 of the SAS Performance Management Solutions

Visual Studio.NET. Although it is possible to program.net using only the command OVERVIEW OF VISUAL STUDIO.NET

If you are currently using a beta version of EPIC that is prior to 4.56 then you need to upgrade to version 5.00.

Transcription:

TREX Set-Up Guide: Creating a TREX Executable File for Windows Prepared By: HDR 1 International Boulevard, 10 th Floor, Suite 1000 Mahwah, NJ 07495 May 13, 2013

Creating a TREX Executable File for Windows Overview Any C compiler that works with the Microsoft Windows Operating System (OS) can be used to create a TREX executable (.exe) file for Windows. The following is a description of how users can create a TREX executable using the Microsoft Visual Studio C (C++) compiler. As of July 2010, Visual Studio C++ can be downloaded from the Microsoft web site at the following URL: http://www.microsoft.com/express/downloads/#2010-visual-cpp. The instructions that follow have been used with Visual Studio.Net 2003, Visual Studio Express Edition 2008, and Visual Studio Express Edition 2010. Note: Menu items or dialog boxes described in these instructions may differ because small differences exist between versions of the Visual Studio software. Nonetheless, menus items and dialog boxes in each version of the software will be very similar even if not identical. 1. Launch the Visual Studio (.Net or Express) application. 2. Create a new project. Select the "File" Menu, click on "New" and choose "New Project". TREX Set-Up Guide: Creating a TREX Executable File for Windows Page 2 of 6

3. Choose a project type and template. From the dialog box, choose Visual C++ project, select Win32 Console Application as the template, provide a name for the project such as TREX on the Name line, and specify the directory where you want the project to be created. Click OK. 4. Select the project settings. From the dialog box, click on Application Settings on the left hand side of the box, select Empty project from the list that appears on the right, and then click Finish. At this point, Visual Studio will create a folder that you can use for the project. For your convenience, it is helpful to copy the folder containing the TREX source code into the folder that you just created for the project or in a folder at the same directory level of your project folder. TREX Set-Up Guide: Creating a TREX Executable File for Windows Page 3 of 6

5. Add source code files to the project. Right click on the Source Files folder in the Solution Explorer pane of the Visual Studio Window and choose Add and then Add Existing Item from the context menu. When the dialog box opens up, browse/navigate your way to the folder containing the TREX source code, select each and every one of the.c files from the list, and then click the Open button. Note: you will need to delete either trex-r4.c or trex-debugger-r4.c from the source file list. See Step 8. 6. Add header files to the project. Right click on the Header Files folder in the Solution Explorer pane of the Visual Studio Window and choose Add and then Add Existing Item from the context menu. When the dialog box opens up, browse/navigate your way to the folder containing the TREX source code, select each and every one of the.h files from the list, and then click the Open button. 7. Select the user configuration. Click on the Tools menu and move the cursor to Settings from near the bottom of the list and choose Expert Settings from the sub-menu that appears. TREX Set-Up Guide: Creating a TREX Executable File for Windows Page 4 of 6

8. Select the project configuration. Single click on the TREX solution name in the Solution Explorer pane of the Visual Studio Window to highlight it. Click on the Build menu and choose Configuration Manager from near the bottom of the list. From the Configuration Manager dialog box, choose an Active Configuration from the drop-down menu. The choices are either Release or Debug. A Debug version allows you to trace code operation one line at a time but is slower to run. A Release will run faster but may not provide line-by-line information regarding the internal details of code operation. When developing new code or tracing program operation, it is better to use a Debug version. When performing full model simulations, it is better to use a Release version. Click Close when done. 9. Delete one of the trex-*.c files from the list of source files The source files are located in the "Solution Explorer" pane of the Visual Studio Window. The file you need to delete will depend on whether you are creating a Debug or release version of the executable file. If you chose Release, single click on the file trex-debugger-r4.c and delete it from the source file list. If you chose Debug, single click on the file trex-r4.c and delete it from the list. 10. Build an executable. Click on the Build menu and select Build Solution from the top of the list. This starts the build process. It may take a couple of minutes for the process to complete. The TREX executable file will be located within your project folder in the Release or Debug sub-folder (depending on what you chose for an active configuration. This file can also be copied to a place where you want to run TREX. Specifically, TREX can be run from the Windows command prompt (Start/Program Files/Accessories/Command Prompt). TREX Set-Up Guide: Creating a TREX Executable File for Windows Page 5 of 6

Note: while code is compiling, warning messages may appear depending on which version of Visual Studio you use. These warnings represent differences in how C programming language standards are implemented in different versions of Visual Studio and can be safely ignored. 11. Set the working directory for program operation within Visual Studio Right click on the project folder in the Solution Explorer pane of the Visual Studio Window and choose Properties from the context menu. Under Configuration Properties select Debugging and specify Working Directory and Command Arguments. Working Directory will contain directories for input and output files and Command Arguments will be the specified input file (as well as any desired simulation restart conditions). TREX Set-Up Guide: Creating a TREX Executable File for Windows Page 6 of 6