Midterm Thursday Topics: First Midterm Instructions Set Architecture Machine Language Programming Assembly Language Programming Traps, Subroutines, & Interrupts.

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

File Transfer Protocol. FTP (File Transfer Protocol) is used to transfer programs or other information from one computer to another. This simple tool.
Code Composer Department of Electrical and Computer Engineering
Assembly Language for Intel-Based Computers, 4 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and.
Utilizing the GDB debugger to analyze programs Background and application.
SYSTEM PROGRAMMING & SYSTEM ADMINISTRATION
1 Starting a Program The 4 stages that take a C++ program (or any high-level programming language) and execute it in internal memory are: Compiler - C++
Lab6 – Debug Assembly Language Lab
Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
COSC 120 Computer Programming
Jun-15 1 Management Information Systems Class Web Server Usage Instructions.
George Blank University Lecturer. Creating A Web Site at NJIT Professor Blank.
1 Gentle Introduction to Programming Tirgul 1: Shell and Scala “hands on” in the lab.
Overview C programming Environment C Global Variables C Local Variables Memory Map for a C Function C Activation Records Example Compilation.
Course Introduction and Getting Started with C 1 USF - COP C for Engineers Summer 2008.
Memory & Storage Architecture Seoul National University Computer Architecture “ Bomb Lab Hints” 2nd semester, 2014 Modified version : The original.
Protected Mode. Protected Mode (1 of 2) 4 GB addressable RAM –( to FFFFFFFFh) Each program assigned a memory partition which is protected from.
Copyright Arshi Khan1 System Programming Instructor Arshi Khan.
Prof. R. Willingale Department of Physics and Astronomy 2nd Year C+R 2 nd Year C and R Workshop Part of module PA2930 – 2.5 credits Venue: Computer terminal.
©2005 GE Fanuc Automation, Inc. All Rights Reserved PACSystems Training Programmer’s Toolkit.
A crash course in njit’s Afs
The Unix Environment and Compiling. Getting Set Up Your programs will be compiled and tested on the Departmental server ‘linprog’ The linprog servers.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
CNIT 132 Intermediate HTML and CSS Publish Web Page.
Using Visual Basic 6.0 to Create Web-Based Database Applications
1 A Simple but Realistic Assembly Language for a Course in Computer Organization Eric Larson Moon Ok Kim Seattle University October 25, 2008.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 2: Operating-System Structures Operating.
HTML Hyper Text Markup Language A simple introduction.
Logging into the linux machines This series of view charts show how to log into the linux machines from the Windows environment. Machine name IP address.
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
CS 444 Introduction to Operating Systems
UNIX Introduction CSCE 221H Texas A&M University.
The LC-3 – Chapter 7 COMP 2620 Dr. James Money COMP
INTRODUCTION TO CSCE LAB BASIC OF COMPUTERS, C++, UNIX, AND HELLO WORLD.
Matthew Ellis rd January 2006 CM610 Assignment Bsc(Hons) Computing Studies.
N from what language did C++ originate? n what’s input, output device? n what’s main memory, memory location, memory address? n what’s a program, data?
Computer Science 210 Computer Organization More on Assembler.
CS140: Intro to CS An Overview of Programming in C (part 3) by Erin Chambers.
Tools: SSH, SFTP, dunx1, Nvu David Tristano Drexel IRT Dept.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
ISAT/CS 250 login: jmu eid like harrisnl When you log into the lab machines using your jmu eid Your “home” directory is actually a directory on a server.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
INTRODUCTION – COMPUTERS, BASIC C++, UNIX ACKNOWLEDGEMENT: THE SLIDES ARE PREPARED FROM SLIDES PROVIDED BY NANCY M. AMATO AND JORY DENNY 1.
C Programming Chapters 11, . . .
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
Debugging Lab Antonio Gómez-Iglesias Texas Advanced Computing Center.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Review Why do we use protection levels? Why do we use constructors?
Lab (6) Introduction to Assembly Language 1. Introduction Objectives : Learn EMU8086 installation EMU8086 environment Learn how to: Assemble instructions.
Chapter Goals Describe the application development process and the role of methodologies, models, and tools Compare and contrast programming language generations.
Overview of Linux Fall 2016 Dr. Donghyun Kim
Compsci 210 Tutorial Five.
Homework Reading Assignment Lab 1 MP1
Names and Attributes Names are a key programming language feature
Computer Terms Review from what language did C++ originate?
Computer Science 210 Computer Organization
Andy Wang Object Oriented Programming in C++ COP 3330
CS 301 Fall 2001 – Chapter 3 Slides by Prof. Hartman, following “IBM PC Assembly Language Programming” by Peter Abel 9/17/2018.
Computer Architecture “Bomb Lab Hints”
Computer Science 210 Computer Organization
FTP and UNIX TOPICS Exploring your Web Hosting Site FTP UNIX
Introduction to Operating Systems
CCR Advanced Seminar: Running CPLEX Computations on the ISE Cluster
Getting Started: Developing Code with Cloud9
CSC235 - Visual Studio Tutorial
Logging into the linux machines
Chapter 6 Programming the basic computer
Computer Terms Review from what language did C++ originate?
Setting up home folders and roaming profiles
CSCE 206 Lab Structured Programming in C
Presentation transcript:

Midterm Thursday Topics: First Midterm Instructions Set Architecture Machine Language Programming Assembly Language Programming Traps, Subroutines, & Interrupts Simulating / Debugging LC-3 Instruction sheet & ASCII table will be provided

C Programming Chapters 11,... C – Compiler Secure File Transfer / Terminal Tools - SSH Tectia File Transfer - SSH Tectia Client Testing C Programs - Compiling C programs - Tracing C programs - Tracing C program stacks

Getting the Compiler Necessary if you don’t want to compile your programs on insttech or if you want to get C programs in the lcc-1.3/test folder Go to our home page: Go to the Author’s web site: Get the compiler: C to LC-3 Compiler Some files to play with are in: lcc-1.3/test (you might want to copy his file to your H: drive )

Getting Secure File Transfer tools Institute Lab Resources: You can access C Compiler from: –Lab: Cherry Parks 206D Use your H: file for storing your C programs and compilations –Home: see Institute Lab Resources: how to access some resources of the labs from your home computer.how to access some resources of the labs from your home computer Click on: TeraTermPro with SSH Support (or get from UWICK Disk)TeraTermPro with SSH Support Search by title for: SSH Tectia ClientSSH Tectia Client Download it from the serve and install it. -Open SSH Tectia Client and Click Profiles and Add ProfileSSH Tectia Client the Hostname is repos.insttech.washington.edurepos.insttech.washington.edu the Username is your UW login nameyour UW login name -To begin a session, Open SSH Tectia Client, Click Profiles, Click repos.insttech.washington.edu. Under window you can select either or bothSSH Tectia Client repos.insttech.washington.edu New Terminal or New File Transfer.New TerminalNew File Transfer

Using SSH Tectia ClientSSH Tectia Client

Using SSH Tectia ClientSSH Tectia Client You are logged into a Linux machine. Some usefull commands are: ls list files in the directory you are pointed toward cd change directory (.. Up one level) To run the compiler, type: lcc filename.c It will produce the following files: ASM LC-3 Assembly Program SYM LC-3 Symbol Table OBJ LC-3 Simulator Load Module

Using Tectia File TransferTectia File Transfer

Using Tectia File TransferTectia File Transfer The left screen is you home computer files The right screen is your H: drive –Win is a folder in it for your files You can moves up/down the folder hierarchy on either side You can transfer files either way by dragging them

Compiling and Testing a C program Using your Tectia File Transfer, place your C program in your win folder.Tectia File Transfer Navigate in your SSH Tectia Client, to see your C program file.SSH Tectia Client Execute the C Compiler: lcc programname.c Transfer the resultant files back to your home machine, where you have your LC-3 simulator. Load your OBJ file into the simulator and run it.

What is in the Compiler ASM file The ASM file is organized as follows: The raw uncommented LC-3 assembly equivalent of your C program - with your functions and the library functions scanf (input) printf (output) The Global Data Table - includes the literals and labels

Memory map I/O Devices (Global Data pointer)

C Program ; Program to add A + B #include ; I/O Library Functions included int main() ; C programs always begin with main { int A = 3; ; Declare your variables int B = 5; int C; C = A + B; ; computations ; can end with a return “n” } Brackets specify the scope of main

C Program Compilation Compile the program Look at the files Load them into the LC-3 simulator Execute the program and observe its stack