Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 4 fuera de 77 páginas
Examen

CS 354-FINAL EXAM QUESTIONS WITH 100% SOLVED SOLUTIONS!!

Document preview thumbnail
Vista previa 4 fuera de 77 páginas

CS 354-FINAL EXAM QUESTIONS WITH 100% SOLVED SOLUTIONS!!

Vista previa del contenido

CS 354-FINAL EXAM QUESTIONS WITH
100% SOLVED SOLUTIONS!!




1 of
83
Ter
m


What are two common types of system calls?



Give this one a try
later!



File I/O
Source and destination sizes
Creating/Terminating
don't match
new processes

, A file that contains binary The variables/functions that need
code (instructions) and DATA to be resolved/relocated.
Don't know?




2 of 83

Term


Static functions are essentially private functions, so why do
they need linker symbols?


Give this one a try later!



Enables process to interact
with OS No, this is a struct, not a union!
Returns to Inext



Short answer:
Address of &myArray[3][4][5] May not need resolution,
= 0+ 4*[3*10*15 + 4*15 + 5] but may still need
relocation
=2060


Don't know?




3 of 83

Term


int func(int val);
int x = 34;
int main()
{ int y;

, y = func(x);
return 0;
}

Where can the value of variable x be found?
How about the symbol for variable x?


Give this one a try later!




Corresponds to sum = sum + n These are both globals, so bss or
Does not correspond to sum data
+= n arr is uninitialized, so bss
p is initialized, so data



Value: Global, so data
or bss, initialized so %ax isn't valid, memory address
data Symbol: Symtab needs to be 4 bytes, not 2


Don't know?




4 of 83

Term


What does .rel.text and .rel.data contain?


Give this one a try later!



Translates assembler to machine code (ROF)
shared and readable object files

, 1. Put the service number (what specific system call we're doing) in %EAX
2. Put the system call arguments in the remaining registers
3. Run int $0x80, this runs the exception x80 or exception 120 which
is the system call



Code/data that ,when moved to a place, need to be updated (maybe
cause have address offsets which need to be updated when relocated
during linking)



1. Shell creates a child process (duplicate of shell parent process to
be edited)
2. Child process invokes loader
3. Loader creates a new runtime image
4. Loader jumps to first address(


Don't know?




5 of 83

Term


What's a processor mode?
There are 2 modes, what are they?


Give this one a try later!



Different privilege levels
a process can run at
1=Kernel/Supervisor (no %ax isn't valid, memory
restrictions) address needs to be 4 bytes,
not 2
0=User (restricted)

Información del documento

Subido en
12 de mayo de 2025
Número de páginas
77
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$39.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
EvaTee
3.9
(981)
Vendido
5366
Seguidores
3573
Artículos
58302
Última venta
1 día hace


Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes