CS 31 Notes - INTRODUCTION TO COMPUTER SCIENCE (CS 31) FALL...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
INTRODUCTION TO COMPUTER SCIENCE (CS 31) FALL 2004 LECTURE NOTES 10/1/04 T.A.: Alex Chang ( acmchang@cs.ucla.edu ) Office Hours: Mon. 12:30-2:30 @ Boelter 4428 Program Basics Make sure programs compile. Make sure simple tasks run. Backup data and incrementally add code until the completion of the project. Project Tasks (Step-by-step Process) 1. Fully understand all parts of the project. 2. Design program using pen and paper. Include test cases (what output do u expect given a set of input parameters?). 3. Verify that the program design matches program requirements in their entirety. 4. Implement/debug programs on computer, keeping the aforementioned program basics in mind. Basic Notes Bit – A binary number understandable by machines (either a 0 or 1). Most computers have 32-bit processors, but now 64-bit processors are becoming readily available. Bits are arranged to represent alphanumeric characters (e.g. 135 or abc). Bits are part of machine language . Assembly Language – The language used to interpret and understand machine language (e.g. instruction 135 = increment counter at some memory address). Assembler – Converts assembly language to machine language. High Level Language – C/C++, Java, FORTRAN, PERL. Compiler – Takes code and assembles it according to your computer’s architecture (x86 for Intel processors). Compilers generate an intermediary object file. Linker – Links compiled code into an executable file. General Conversion Schematic Machine Language  Assembly Language  High Level Languages
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10/4/04 Software Development Tasks 1. Written specification (outline of program tasks) 2.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

CS 31 Notes - INTRODUCTION TO COMPUTER SCIENCE (CS 31) FALL...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online