COMP-1200 System Calls and Functions

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

1/15

flashcard set

Earn XP

Description and Tags

Flashcards covering key vocabulary and concepts related to system calls and functions learned in COMP-1200.

16 Terms

1
New cards

System Call

A mechanism that allows a program to request services from the operating system's kernel.

2
New cards

Function Call

An instruction that tells the program to execute a specific sequence of code defined as a function.

3
New cards

RISC-V

An open-standard instruction set architecture based on established reduced instruction set computer (RISC) principles.

4
New cards

a-registers

Registers used in RISC-V for passing function arguments.

5
New cards

ecall

An instruction in RISC-V used to make a system call.

6
New cards

JAL (Jump And Link)

An instruction that saves the address of the next instruction to the 'ra' register and jumps to a function.

7
New cards

RET (Return)

An instruction that allows a function to return control back to the point where it was called.

8
New cards

I/O Operations

Input/Output operations involving reading from or writing to external devices.

9
New cards

OS Kernel

Core component of an operating system that manages system calls and hardware interactions.

10
New cards

Temporary Registers

Registers (like t0, t1) used for short-lived values in functions, assumed to be unavailable after the call.

11
New cards

Saved Registers

Registers (like s-registers) used to preserve values across function calls.

12
New cards

Function Return Value

The value returned by a function, typically stored in the a0 or a1 register.

13
New cards

Arguments

Values passed to a function when it is called.

14
New cards

Function Label

Identifying name for a function in assembly language that indicates its start.

15
New cards

Exit System Call

A system call that terminates the program execution.

16
New cards

Print System Calls

System calls that allow programs to output data to the user, like printInt and printChar.