Installing CSIM 20 for UNIX / Linux / Mac OS X / Cygwin Systems

Similar documents
Cincom Smalltalk. Installation Guide P SIMPLIFICATION THROUGH INNOVATION

Installing C++ compiler for CSc212 Data Structures

MatrixSSL Getting Started

Ensure that the AMD APP SDK Samples package has been installed before proceeding.

Code Estimation Tools Directions for a Services Engagement

TIBCO ActiveMatrix BusinessWorks Plug-in for TIBCO Managed File Transfer Software Installation

Backing Up TestTrack Native Project Databases

Supported platforms & compilers Required software Where to download the packages Geant4 toolkit installation (release 9.6)

A survival guide to Radiance on Windows. When you have (almost) no choice :-(

Cygwin: getting the setup tool

GAUSS 9.0. Quick-Start Guide

Installation Guidelines for NS2 on Windows

Personal Virtual Server (PVS) Quick Start Guide

Mimer SQL. Getting Started on Windows. Version 10.1

Microsoft SQL Server Installation Guide

ERIKA Enterprise pre-built Virtual Machine

Microsoft SQL Server Installation Guide

Eclipse installation, configuration and operation

RecoveryVault Express Client User Manual

Practice Fusion API Client Installation Guide for Windows

Chapter 6, The Operating System Machine Level

Objectives. Chapter 2: Operating-System Structures. Operating System Services (Cont.) Operating System Services. Operating System Services (Cont.

Online Backup Linux Client User Manual

Citrix EdgeSight for Load Testing Installation Guide. Citrix EdgeSight for Load Testing 3.8

Online Backup Client User Manual

For Introduction to Java Programming, 5E By Y. Daniel Liang

vtcommander Installing and Starting vtcommander

Installing Bacula Client on Mac OS X Server

Server Monitoring. AppDynamics Pro Documentation. Version Page 1

HP-UX Essentials and Shell Programming Course Summary

Citrix EdgeSight for Load Testing Installation Guide. Citrix EdgeSight for Load Testing 3.5

Chapter 1: Getting Started

1. Product Information

Online Backup Client User Manual Linux

MY WORLD GIS. Installation Instructions

5nine Hyper-V Commander

Get the Better of Memory Leaks with Valgrind Whitepaper

NaviCell Data Visualization Python API

IMF Tune v7.0 Backup, Restore, Replication

PrimeRail Installation Notes Version A June 9,

Software Setup for developing realtime application with LEGO mindstorms NXT

PHP Debugging. Draft: March 19, Christopher Vickery

Parallels Virtuozzo Containers 4.6 for Windows

SQL Server 2008 R2 Express Edition Installation Guide

1) SETUP ANDROID STUDIO

Encrypted File Transfer - Customer Testing

Using Microsoft Visual Studio API Reference

SendMIME Pro Installation & Users Guide

Chapter 3 Operating-System Structures

This document was derived from simulation software created by Steve Robbins which was supported by NSF DUE

Suite. How to Use GrandMaster Suite. Exporting with ODBC

Network Detective Client Connector

1. Installation Instructions - Unix & Linux

Programming with the Dev C++ IDE

Command Line Interface User Guide for Intel Server Management Software

Citrix XenApp-7.6 Administration Training. Course

Archiving File Data with Snap Enterprise Data Replicator (Snap EDR): Technical Overview

Acronis Backup & Recovery 10 Server for Linux. Installation Guide

Magento Search Extension TECHNICAL DOCUMENTATION

Restoring To A Different Location With EBU And RMAN An AppsDBA Consulting White Paper

LSN 10 Linux Overview

vcenter Chargeback User s Guide vcenter Chargeback 1.0 EN

Apache Directory Studio. User's Guide

Eclipse.org CDT and Cygwin: A Tutorial on Installation and Functionality

SimbaEngine SDK 9.4. Build a C++ ODBC Driver for SQL-Based Data Sources in 5 Days. Last Revised: October Simba Technologies Inc.

APPLICATION NOTE. Getting Started with pylon and OpenCV

Stellar Phoenix Exchange Server Backup

Building graphic-rich and better performing native applications. Pro. Android C++ with the NDK. Onur Cinar

Memory Management Simulation Interactive Lab

Trusted RUBIX TM. Version 6. ODBC Guide. Revision 7 RELATIONAL DATABASE MANAGEMENT SYSTEM TEL Infosystems Technology, Inc.

A Transend Corporation White Paper Preparing Microsoft Exchange Server for Migration

Zynq-7000 Platform Software Development Using the ARM DS-5 Toolchain Authors: Simon George and Prushothaman Palanichamy

How to Write a Simple Makefile

Visual COBOL ASP.NET Shopping Cart Demonstration

FLEXNET LICENSING END USER GUIDE. Version 10.8

Network Defense Tools

INTEL PARALLEL STUDIO EVALUATION GUIDE. Intel Cilk Plus: A Simple Path to Parallelism

User's Guide - Beta 1 Draft

Getting Microsoft Outlook and Salesforce in Sync

ROUNDTABLE TSMS 11.5 Installation Guide

CLC Server Command Line Tools USER MANUAL

DS-5 ARM. Using the Debugger. Version 5.7. Copyright 2010, 2011 ARM. All rights reserved. ARM DUI 0446G (ID092311)

Sitemap. Component for Joomla! This manual documents version 3.15.x of the Joomla! extension.

Ipswitch Client Installation Guide

OPERATING SYSTEM SERVICES

Wanos on Hyper-V Comprehensive guide for a complete lab

Operating System Structure

Using Process Monitor

Cloud Computing. Chapter Hadoop

Acronis Backup & Recovery 10 Server for Linux. Update 5. Installation Guide

CSC230 Getting Starting in C. Tyler Bletsch

NVIDIA CUDA GETTING STARTED GUIDE FOR MAC OS X

Parallels Transporter Agent

Using SQL Developer. Copyright 2008, Oracle. All rights reserved.

Moxa Device Manager 2.0 User s Guide

Contents. 2. cttctx Performance Test Utility Server Side Plug-In Index All Rights Reserved.

How to use PDFlib products with PHP

Code::Blocks Student Manual

Introduction. POP and IMAP Servers. MAC1028 June 2007

Transcription:

Installing CSIM 20 for UNIX / Linux / Mac OS X / Cygwin Systems Mesquite Software, Inc. PO Box 26306 Austin, TX 78755-0306 (800) 538-9153 or (512) 338-9153 info@mesquite.com www.mesquite.com CSIM is copyrighted by Microelectronics and Computer Technology Corporation, 1985-1994. Its use is covered by the CSIM Software License Agreement included with the software. This manual is copyrighted by Mesquite Software, Inc. It may not be copied without written permission from Mesquite Software, Inc.

Installing CSIM 20 for UNIX / LINUX / MAC OS X / Cygwin Systems Introduction This document describes how to install CSIM 20 on a UNIX, Linux, Mac OS X or Windows/Cygwin system for use with most of the compilers on such systems. It then describes how to compile and execute a CSIM 20 program on this class of platforms. Installation The CSIM 20 distribution package includes a set of directories and files that are either downloaded from the Internet or shipped on a compact disk (CD). Both distribution methods contain the same CSIM 20 files and documentation. If you downloaded CSIM 20 from the Mesquite website, you should have received a.zip archive file. You will need a program capable of extracting ZIP archives. If you obtained a CD copy of CSIM 20, simply copy the contents of the CD to a location of your choice on your system's hard drive. For Internet download packages, simply extract the contents of the downloaded archive file to a location of your choice on your system's hard disk. For the purposes of this document, we will assume the CSIM 20 files have been placed in /home/myusername/csim20. The CSIM 20 distribution contains a hierarchy of directories as follows: <platform name> 64-bit <compiler name> <csim build files> <csim rary> <compiler name> <csim build files> <csim rary> As an example, for a Linux system using gcc as the compiler, the directory structure appears like this: Linux gcc csim.gcc.a csim.h <various build scripts and source files> Installing CSIM 20 for UNIX / LINUX / MAC OS X / Cygwin Systems Page 1

Similarly, for a Linux system using g++ as the compiler, the directory structure appears like this: Linux g++ csim.gpp.a csim.h cpp.h <various build scripts and source files> Note that the name of the directory (gcc / g++) denotes the C vs. the C++ versions. Compiling and Executing CSIM 20 Programs The usual procedure is to compile and execute the first test case (ex1.c in the CSIM 20 directory). To do this, execute the following UNIX commands in the CSIM 20 directory:./csim.gcc ex1.c./a.out Note: In Cygwin, the command to initiate execution of the model is./a.exe. Here, csim.gcc is a simple script that is included in the CSIM 20 directory as a shortcut for building CSIM programs. While this script should work on most systems, it may sometimes be necessary to modify the script to fit your particular environment. For example, if your desired compiler is not in your shell path, you will need to add the full path to your compiler to the command in the script. You may also need to modify the include paths to reflect the complete path to the CSIM 20 directory if you wish to copy the script elsewhere on your system. To compile CSIM 20 programs of your own in other directories, you need to make a copy of the script file csim and modify it to give valid path names for the include directory and for the csim.a file. For example, if the complete path name for the CSIM 20 directory is /home/john/csim20, then the CSIM script file should look like: cc -l/home/john/csim20/ $* /home/john/csim20//csim.a -lm The Gnu C/C++ compiler (gcc or g++) can be used in developing simulation models of systems. Note that for the C++ version of CSIM, it is necessary to define 'CPP' in the preprocessor definitions by adding '-DCPP' to the command line. A Note to Windows Users: CSIM 20 is supported on Windows systems with the GCC compilers under the Cygwin environment, and this is the only configuration that has been properly tested. Other configurations of GCC on Windows will probably work as well, such as the MinGW compiler, the MSYS POSIX environment, or the Bloodshed Dev-C++ IDE. However, these configurations have not been tested by Mesquite Software, so your results with these setups may vary. For information on using CSIM 20 with Microsoft's Visual Studio compilers, see the document Installing CSIM 20 for Microsoft Windows and Visual Studio, also included with this distribution. Installing CSIM 20 for UNIX / LINUX / MAC OS X / Cygwin Systems Page 2

vs. 64-bit Code CSIM 20 now supports 64-bit platforms in the professional version. The primary advantage of building CSIM programs with 64-bit support is that it allows for a much larger address space, which, in turn, allows much larger and more complex models to be built and run. Most use cases will not encounter the limits of mode, but for very large models, 64-bit compilation may be required. In addition to allowing larger models, compiling CSIM programs with 64-bit support will often yield better performance, but this result is not always true. For example, on the x86 architecture, x86-64 offers many more improvements and optimizations than just 64-bit mode. Thus, on x86-64 platforms, compiling for 64-bit will usually result in faster performance of CSIM models. However, this performance improvement may not occur on all platforms. For detailed help determining the need, capability, and advantages of using 64-bit mode on your specific platform with your specific usage needs, please feel free to contact Mesquite Software. Writing CSIM 20 Programs The major objects in a CSIM 20 simulation model (program) are the resources of the model and the processes (entities) that will use these resources. Thus, designing a CSIM 20 model usually proceeds as follows: 1. Deternine the resources needed by the model. In CSIM 20, these resources can be of the following types: Facilities single server, multiserver-server or sets of facilities Storage blocks either a single block or a set of blocks These resources are usually global; that is, declared outside of the context of a procedure. In addition, these resources must be initialized prior to their use. 2. Determine the processes of the model: The first process is normally named sim. If this is not done, then the programmer must provide a main procedure, which is used instead of the main provided in the CSIM 20 rary. Sim is called with the arguments argc and argv, just as main is called in a normal C program. A CSIM 20 process is a C procedure that executes a create statement. This create statement is executed at the beginning of the procedure. There is no predefined relationship between CSIM 20 s processes; any process can invoke any other process (except sim should only be invoked once). A CSIM 20 process is not a UNIX process. It is like a thread or lightweight process. A CSIM 20 process cannot return a value (it is not a function). A CSIM 20 process terminates by doing a normal procedure exit: it either executes a return statement or it flows out of the procedure. A CSIM 20 process can synchronize its interactions with other processes by using events, mailboxes, facilities and storage blocks. The CSIM 20 User s Guide goes into more detail on how to write processes. Installing CSIM 20 for UNIX / LINUX / MAC OS X / Cygwin Systems Page 3

Testing CSIM 20 Programs Testing and debugging CSIM 20 programs can proceed in several ways: A CSIM 20 program is a real C or C++ program, so printf statements, etc., can be used to give the state of various variables and procedures. A CSIM 20 event trace gives a detailed account of the actions of each process in the model. It can be turned on in two different ways: o The T command line argument, which causes the program to start with the trace on. To specify this on a UNIX command line, specify -T o The trace-on and trace-off statements in a CSIM program can selectively activate and deactivate the event trace. The dump_status statement prints the current status of all resources and processes in the model. There are separate status routines for facilities (status_facilities), storage blocks (status_storages), etc. The CSIM 20 rary routines all send their output to one of three files. The files all default to stdout, but can be redirected by using one of the following statements: set _output_file redirects reports and status information set_trace_file redirects the event trace set_error_file redirects error messages Note that all CSIM documentation is available on the Mesquite website at http://mesquite.com/documentation/index.htm For Further Information If you have difficulties installing the CSIM 20 rary or with writing, testing and executing CSIM 20 programs, please contact: Customer Support Mesquite Software, Inc. PO Box 26306 Austin, TX 78755, USA Tel: 1-800-538-9153 (for US customers), 1-512-338-9153 (for all others) Fax: 1-512-338-4966 E-mail: info@mesquite.com www.mesquite.com Installing CSIM 20 for UNIX / LINUX / MAC OS X / Cygwin Systems Page 4