Introduction Flashcards

1
Q

Machine Cycle

A

Fetch > Decode > Execute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Retrieve the instruction from memory and increment the Program Counter

A

Fetch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Decode the bit pattern in the Instruction Register

A

Decode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Perform the instruction in the Instruction Register

A

Execute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Instructions are from a language called ____

A

Machine Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

An executable program is a sequence of these simple instructions, which are stored in memory

A

Machine Code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The computer can only understand the bits (the encoded program):

A

Machine Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

English-like abbreviations for programs:

A

Assembly Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What the computer actually sees and deals with. Given as a number or a sequence of numbers.

A

Machine Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Same as machine language, except the command numbers have been replaced by letter sequences

A

Assembly Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Middle-level language, maps human-readable mnemonics to machine instructions, allows machine-level programming without writing in machine language

A

Assembly Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Allows you to describe the program in a more natural language

A

High-level language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Low-level language which provides the basic instructional interface to the computer processor

A

Assembly Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

As close to the processor as you can get as a programmer

A

Assembly Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Reasons not to use assembly:

A

> Development TIme
Maintainability
Portability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The I/O devices connected to the bus

A

Input and Output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

A collection of the computer’s electrical lines where signals pass through

A

bus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

The bus is typically designed to transfer fixed-sized chunks of bytes known as _____

A

words

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

The computer’s processor; Engine that interprets (or executes) instructions stored in main memory

A

Central Processing Unit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

CPU chip includes the _____ and ______

A

Arithmetic and Logic Unit, CPU Registers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

A logic circuit in the CPU that is responsible for performing mathematical and logical operations

A

Arithmetic and Logic Unit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

A set of flip-flops treated as a single unit

A

register

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

A digital logic circuit capable of storing a single bit

A

flip-flop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Temporary storage device that holds both a program and the data it manipulates while the processor is executing the program

A

Main Memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Data storage sizes in order

A

Byte > Word > DWord > QWord > DQWord

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Temporary storage or working location built into the CPU itself (separate from memory)

A

register

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Computations are typically performed by the CPU using ______

A

registers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

A ______ can be accessed with all 64-bits or some portion or subset accessed

A

General Purpose Register

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Used to point to the current top of stack

A

Stack pointer register (RSP)

30
Q

Used as a base pointer during function calls

A

Base pointer register (RBP)

31
Q

Used by the CPU to point to the next instruction to be executed

A

Instruction pointer register (RIP)

32
Q

Used for status and CPU control information

A

Flag register (rFlags)

33
Q

Updated by the CPU after each instruction and not directly accessible by programs

A

Flag register (rFlags)

34
Q

stores status information about the instruction that was just executed

A

Flag register (rFlags)

35
Q

Can be viewed as a series of bytes; each memory address holds one byte of information

A

Main Memory

36
Q

Main memory architecture is _____

A

little-endian

37
Q

Stored in the lowest memory address

A

Least Significant Byte (LSB)

38
Q

Stored in the highest memory location

A

Most Significant Byte (MSB)

39
Q

Makes use of LSB and MSB

A

Little-endian architecture

40
Q

where the machine language is stored

A

text (code)

41
Q

where the initialized data is stored

42
Q

where uninitialized declared variables are stored

43
Q

where dynamically allocated data will be stored (if requested)

44
Q

starts in high memory and grows downward (used by subroutines)

45
Q

Goal of Memory Hierarchy

A

Balance performance with cost

46
Q

all initialized variables and constants are places in this section

A

Data Section

47
Q

Data section starts with ____

A

section .data

48
Q

____ substituted for their defined values during the assembly process

49
Q

not assigned a memory location

50
Q

format for constants

A

<varname> equ <initVal>
</initVal></varname>

51
Q

format for variable definition

A

<varname> <directive> <initVal>
</initVal></directive></varname>

52
Q

all uninitialized variables are placed in this section

A

BSS Section

53
Q

BSS section starts with ____

A

section .bss

54
Q

includes some headers or labels that define the initial program entry point

A

Text Section

55
Q

Text section starts with ___

A

section .text

56
Q

Numeric values may be specified in ______

A

Decimal, hex, or octal

57
Q

Default radix (base) for numeric value is _____

58
Q

modifies the original C program according to directives that begin with the # character

A

Preprocessing

59
Q

translates the output text file of the pre-processor into a text file which contains an assembly language program

A

Compilation

60
Q

Translates compiler output to machine language instructions, generating a relocatable object program

61
Q

Handles the merging of other necessary precompiled object files with the assembler’s output, generating an executable file

62
Q

Program that will read an assembly language input file and convert the code into a machine language binary file

63
Q

comments are removed, and the variable names and labels are converted into appropriate addresses

64
Q

optionally capable of creating a list file which shows the line number, the relative address, the machine language version of the instruction, and the original source line

65
Q

combines one or more object files into a single executable file

66
Q

any routines from user or system libraries are included as necessary

67
Q

part of the operating system that will load the program from secondary storage to primary storage (main memory)

68
Q

used to control execution of a program

69
Q

allows for testing and debugging activities to be performed