Docsity

Programming - Machine Organization - Lecture Slides, Slides of Electric Machines

Partial preview of the text

Download Programming - Machine Organization - Lecture Slides and more Slides Electric Machines in PDF only on Docsity!

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**

Using SSH Tectia Client

Using Tectia File Transfer

Using Tectia 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

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 Compilation

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