david touches kids

0.0(0)
Studied by 3 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/56

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:45 AM on 10/24/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

57 Terms

1
New cards

next

Execute the next line of code, pausing once it is completed. If the line contained a function call, run the whole function

2
New cards

display expression

Show the value of expression whenever the program pauses execution

3
New cards

finish

Complete the current function you are in and go back to where this function was called

4
New cards

up

Move up one level on the call stack

5
New cards

print expression

Show the value of expression once

6
New cards

watch expression

Cause the program to pause execution whenever the value of expression changes

7
New cards

bt

Show the current call stack

8
New cards

down

Move down level on the call stack

9
New cards

step

Execute the next line of code, pausing once it is completed. If the line contained a function call, pause at the beginning of the called function

10
New cards

continue

Resume execution of the program until it hits the next breakpoint or reaches the end of the program

11
New cards

run

Start/restart execution of the program

12
New cards

break location

Cause the debugger to pause the program when it reaches the specified location

13
New cards

Nibble

4 bits

14
New cards

Byte

8 bits

15
New cards

S unique states

log2(s) bits

16
New cards

Int

4 bytes

17
New cards

Short

2 bytes

18
New cards

Char

1 byte

19
New cards

Float

4 bytes

20
New cards

Double

8 bytes

21
New cards

Logical Right Shift

unsigned int, char, short

22
New cards

Arithmetic Right Shift

int, char, short

23
New cards

Little Endian

  • The least significant byte of a word is stored at the lowest part of an address(backwards)

24
New cards

Big Endian

  • The most significant byte of a word is stored at the lowest part of an address(forwards)

25
New cards

One big Chunk

Advantages: Quick to access, works good with caches since elements next to each other

Disadvantages: Must know size of arrays at compile times, must specify size of dimensions

26
New cards

Array of Arrays

Advantages: Can have ragged arrays,don’t need to know size of array ahead of time

Disadvantages: Requires more space to store pointers, can be slower to access, rows aren’t adjacent

27
New cards

Global variables

Stored in order of appearance so the first global will have the lowest address

28
New cards

Arguments

Stored in order of appearance so the first argument will have the lowest address

29
New cards

Locals

Stored in reverse order of appearance so the last local will have the lowest address

30
New cards

Compiler Guard

Many protections come from computer instead of hardware, compiler refuses access of private variables, nothing in hardware protects it.

31
New cards

Row Major

K= i * N + j

32
New cards

Column Major

K = j * M + i

33
New cards

Major components of computer

Hardware, Low level Software(operation system, system calls)

34
New cards

Issues with Hardware

Programs run on one CPU will not run on another

35
New cards

Issues with Software

System calls will be different for different operating systems.

36
New cards

CPU

Executions instructions of program

37
New cards

Memory

Store’s program’s instructions and data

38
New cards

I/O Devices

Allows computer to interact with outside world(hard drive, monitor, mouse,keyboard)

39
New cards

System Bus

Wires that connect components so they can communicate, nothing stored, include control, address, and data bus

40
New cards

RAM

Takes same amount of time to access element regardless of where it is, volatile, where programs are stored when running

41
New cards

ROM

Nonvoltaile, when powered off stuff stays, system bios stored here

42
New cards

Control Bus

Used to send control signals such as read and write

43
New cards

Address Bus

use to send address you want to read from or write to

44
New cards

Data Bus

IF control bus says read: data bus will contain value read from memory at value sent to address bus, IF control says write: data bus will contain the value you want to write to memory

45
New cards

ALU

performs operations( addition, subtraction, bitwise AND) ,etc, does not store anything but calculations

46
New cards

Data Registers

small fast memory inside of CPU used to store data and results of operations

47
New cards

PC(Program Counter)

Holds address of instruction currently being executed

48
New cards

Instruction Register(IR)

Holds instructions being executed

49
New cards

ESP

Stack pointer, points to top of program’s stack

50
New cards

MAR(memory address register)

register connecting CPU to Address bus

51
New cards

MDR(memory data register)

register connecting CPU to data bus

52
New cards

EFlags

Stores various bits of data about the state of the program)(ex: What mode are we on? was the last digit 0?)

53
New cards

CPU Cycle

Fetch, Decode, Execute, Write(FDEW)

54
New cards

CPU Time

number of instructions/ program * clock cycles/ instruction * time/ clock cycles

55
New cards

Wall Time

Amount of time it takes for your program to finish, usually greater than CPU time because of delays

56
New cards

Parallelism

multiple operations at the same time

-Message passing: Processes explicitly send messages to one another

-Shared memory: Processes share information implicitly through shared memory

57
New cards

Pipelining

Breaking sequence into multiple stages and doing each stage to different things, limit to time of slowest stage(ex. washing clothes, cpu cycle(4x))