• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/5

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

5 Cards in this Set

  • Front
  • Back
List the 4 steps that convert a source file into a machine executable
1) source program (.c) goes into preprocessor (cpp)

-> .i file, a modified text source file, is created


2) .i file goes to the compiler (cc1), which translates it to assembly


-> .s file, a text assembly file, is created


3) .s file goes to the assembler (as), which translates it to binary


-> .o file, binary relocatable object file, is created


4) .o files stick around and can be used by the linker (ld)


-> .o files get loaded together into executable object programs

What is the main motivation for the memory hierarchy?

What is the main motivation for virtual memory?

How many bits in:


char, short, int, long int, long long int, char*, float, double




Which data types have different sizes at 32- and 64-bit architectures?

32 64


char 1 1


short int 2 2


int 4 4


long int 4 8 <-- different


long long int 8 8


char * 4 8 <-- different


float 4 4


double 8 8

What is the difference between arithmetic and logical right shifts? Why are there two kinds?