Programming with C: Dictionary of Terms
The terms the lecture notes introduce, each with a short definition. The week column links to the notes where the term is explained. C names are written as they appear in code.
| Term | Definition | Week |
|---|---|---|
| .bss | The region holding statics that are zero-initialized; only its size is recorded in the executable and the loader zeroes it at startup. | 17 · Scope, Lifetime, and Program Memory Layout |
| .PHONY | A Make declaration marking targets such as clean as commands rather than files, so they always run. | 29 · Building Programs and Libraries |
| .rodata | The read-only region holding string literals and const data, which the hardware refuses to let the program write. | 17 · Scope, Lifetime, and Program Memory Layout |
| ABI compatibility | The property that an already-compiled program still links and runs correctly against a new version of a library. | 45 · Packaging and Distributing C Libraries |
| abstract data type (ADT) | A type defined by its operations rather than its representation, so the implementation can change without affecting callers. | 33 · Trees, Hash Tables, and Abstract Data Types |
| accept | The server call that waits for a connection request and returns a new descriptor for that connection. | 40 · Network Programming with Sockets |
| address-of operator (&) | The operator that yields the address of an object. | 13 · Introduction to Pointers |
| AddressSanitizer | A compiler-inserted checker enabled with -fsanitize=address that reports out-of-range memory accesses with the exact line and offset. | 12 · One- and Multi-Dimensional Arrays |
| alignment | The requirement that an object of a type be stored at an address that is a multiple of a particular number of bytes. | 22 · Unions, Enumerations, and Type Aliases |
| Amdahl's law | The rule that speeding up part of a program improves the whole only in proportion to the share of time that part takes. | 34 · Performance and Memory Layout |
| amortized constant time | A cost that averages to a constant per operation over many operations, as with appending to an array whose capacity doubles. | 19 · Dynamic Memory Allocation |
| anonymous union | A union or structure member without a name whose members are accessed as if they belonged to the enclosing structure. | 38 · Type Qualifiers, Inlining, and Modern C |
| ANSI C | The first formal C standard, published in 1989 and adopted by ISO as C90; also called C89. | 2 · History, Standards, and the Compilation Model |
| API compatibility | The property that existing source code still compiles against a new version of a library. | 45 · Packaging and Distributing C Libraries |
| argc | The count of command-line arguments passed to main, including the program name. | 23 · Program Arguments and Input |
| argv | The array of pointers to the command-line argument strings, in which argv[0] is the program name and argv[argc] is NULL. | 23 · Program Arguments and Input |
| arithmetic shift | A right shift that fills with the sign bit, preserving the sign; C leaves the choice for negative values implementation-defined. | 25 · Bit-Level Operations |
| array | A fixed number of elements of one type stored contiguously in memory and indexed from 0. | 12 · One- and Multi-Dimensional Arrays |
| array decay | The implicit conversion of an array name to a pointer to its first element in most expressions. | 13 · Introduction to Pointers |
| array of pointers | An array whose elements are pointers, such as a list of strings of different lengths, declared like int *a[5]. | 15 · Pointer Arithmetic and Arrays |
| arrow operator | The operator -> that selects a member through a pointer to a structure; p->x means (*p).x. | 21 · Structures |
| ASCII | The traditional character encoding that assigns integer codes 0 to 127 to English letters, digits, punctuation and control characters. | 4 · Data Representation |
| assembler | A program that translates assembly language, a readable naming of machine instructions, into machine code. | 1 · Computers, Programs, and the C Toolchain |
| assert | The macro that aborts with the expression, file and line when its condition is false, and disappears under NDEBUG. | 27 · Error Handling Strategies |
| associativity | The rule deciding how operators of equal precedence group, such as left to right for subtraction. | 6 · Operators and Expressions |
| async-signal-safe function | A function that may legally be called from a signal handler, such as write or _exit, unlike printf or malloc. | 39 · Processes, Signals, and Low-Level I/O |
| atexit | The function that registers a handler to run on normal program termination. | 31 · Command-Line Interfaces and the Environment |
| atoi | A conversion function that cannot report non-numeric input, trailing text or overflow, and so is unsuitable for external input. | 23 · Program Arguments and Input |
| atomic | An object whose operations are indivisible with respect to other threads, declared with stdatomic.h. | 41 · Concurrency and the C Memory Model |
| backlog | The queue of completed connections waiting to be accepted by a listening server. | 40 · Network Programming with Sockets |
| backtrace | The list of active function calls, shown by a debugger, that led to the current point. | 35 · Debugging, Testing, and Analysis |
| balanced tree | A tree that keeps its height proportional to log n, as AVL and red-black trees do by rotating after insertion. | 33 · Trees, Hash Tables, and Abstract Data Types |
| base case | The branch of a recursive function that returns without calling itself and answers the smallest version of the problem directly. | 18 · Recursion |
| big-endian | A byte order that stores the most significant byte at the lowest address, used as network byte order. | 37 · Portability and the Machine Model |
| binary search tree | A tree in which every key in a node's left subtree is smaller and every key in its right subtree is larger than the node's key. | 33 · Trees, Hash Tables, and Abstract Data Types |
| bit packing | Combining several small values into one integer with shifts and OR, and extracting them again with shifts and masks. | 25 · Bit-Level Operations |
| bit-field | A structure member declared with a width in bits, whose layout is not fixed by the standard and so is unsuitable for external formats. | 25 · Bit-Level Operations |
| block | A sequence of statements wrapped in braces that can appear wherever a statement can and creates a new scope. | 3 · Program Structure, Style, and Basic Output |
| bounds checking | Verifying that an index lies within an array, which C does not do automatically. | 12 · One- and Multi-Dimensional Arrays |
| boy scout rule | Improving slightly whatever code you touch as part of the work you were already doing. | 56 · Maintaining Long-Lived C Codebases |
| break | A statement that leaves the innermost enclosing loop or switch immediately. | 10 · Loops and Flow Control |
| breakpoint | A point set in a debugger at which execution stops so the program state can be examined. | 35 · Debugging, Testing, and Analysis |
| buffer overflow | A write past the end of an array that can overwrite a return address, a function pointer or neighboring data. | 36 · Undefined Behavior and Secure Coding |
| buffering | Collecting output in memory and writing it in blocks, which explains delayed output and data lost in a crash. | 26 · Files and Streams |
| build step | The separate translation stage a compiled language needs, turning edited source into an executable before the program can run. | 1 · Computers, Programs, and the C Toolchain |
| __builtin_add_overflow | A GCC and Clang builtin that performs an addition and reports whether it overflowed, without invoking undefined behavior. | 46 · ABI and Interfacing with Other Languages |
| byte order | The order in which the bytes of a multi-byte integer are stored in memory. | 37 · Portability and the Machine Model |
| cache line | The block of memory, typically 64 bytes, that hardware transfers between memory and the cache in one piece. | 34 · Performance and Memory Layout |
| cache locality | The property that data accessed together lies close together in memory, which makes arrays faster than scattered list nodes. | 32 · Linked Data Structures |
| cache miss | An access to data that is not in the cache, forcing a slow wait for main memory. | 34 · Performance and Memory Layout |
| call stack | The region of memory where stack frames are pushed as functions are called and popped as they return. | 11 · Functions |
| callback | A function passed to another function so that it can call it back to do part of the work. | 30 · Function Pointers, Callbacks, and Generic Programming |
| caller-supplied buffer | Storage, together with its size, that the caller passes in so the function allocates nothing and cannot leak or overflow it. | 16 · Pointers as Function Parameters |
| calling convention | The platform rules for how arguments and return values are passed, which registers must be preserved and how the stack is used. | 46 · ABI and Interfacing with Other Languages |
| calloc | The function that allocates a zero-filled block for a count of elements and detects overflow in count times size. | 19 · Dynamic Memory Allocation |
| cast | An explicit conversion written as a type name in parentheses before an expression; it also hides warnings the conversion would otherwise produce. | 7 · Type Conversions |
| chaining | A collision strategy in which each bucket holds a linked list of the entries that landed there. | 33 · Trees, Hash Tables, and Abstract Data Types |
| changelog | A user-facing list of what each release added, fixed and changed, written for readers rather than copied from commit logs. | 44 · Collaborative Development and Code Review |
| characterization test | A test that records what existing code currently does, correct or not, so refactoring can be checked without a specification. | 56 · Maintaining Long-Lived C Codebases |
| Chesterton's fence | The rule that apparently pointless code should not be removed until you understand why it was written, for example by searching history with git log -S. | 43 · Working in an Existing Codebase |
| clangd | A language server that provides go-to-definition and find-all-references in an editor, using a compile_commands.json file. | 42 · Reading Excellent C |
| clock | The function that returns the processor time used by the program, not elapsed wall-clock time. | 24 · The Standard Library Toolbox |
| CLOCK_MONOTONIC | The POSIX clock that never jumps backwards, which makes it the right choice for measuring elapsed intervals. | 24 · The Standard Library Toolbox |
| CMake | A tool that generates build files for other build systems, such as Makefiles, Ninja or Visual Studio projects, from one configuration. | 29 · Building Programs and Libraries |
| code coverage | A measure of which lines of the program were executed by the tests. | 35 · Debugging, Testing, and Analysis |
| collision | The situation in which two different keys produce the same hash table index. | 33 · Trees, Hash Tables, and Abstract Data Types |
| comparator | A function that orders two elements by returning a negative value, zero or a positive value, as used by qsort and bsearch. | 30 · Function Pointers, Callbacks, and Generic Programming |
| compiler | A program that translates a whole source file in a higher-level language into machine code ahead of time, producing an executable. | 1 · Computers, Programs, and the C Toolchain |
| compound literal | An expression that creates an unnamed object of a given type in place, living until the end of the enclosing block. | 38 · Type Qualifiers, Inlining, and Modern C |
| condition variable | A synchronization object that lets a thread sleep until shared data reaches a desired state. | 41 · Concurrency and the C Memory Model |
| conditional compilation | Using directives such as #ifdef and #if to include or exclude code depending on macros set at build time. | 28 · The Preprocessor and Modular Programming |
| conditional operator | The ternary operator ?: that chooses between two expressions and evaluates only the one chosen. | 9 · Conditional Statements |
| const | A qualifier that makes an object read-only, so the compiler rejects assignments to it. | 5 · Variables, Types, and Constants |
| const char * | A pointer to constant characters: the pointer can be repointed, but the characters cannot be modified through it. | 16 · Pointers as Function Parameters |
| const correctness | The discipline of declaring every pointer parameter const when the function does not modify its target, so the compiler enforces the contract. | 16 · Pointers as Function Parameters |
| continuation byte | A byte of a multi-byte UTF-8 sequence whose top two bits are 10, which is skipped when counting characters. | 37 · Portability and the Machine Model |
| continue | A statement that skips the rest of the loop body and goes on to the next iteration. | 10 · Loops and Flow Control |
| continuous integration (CI) | A setup that builds and tests every change automatically and fails the build when a tool reports a problem. | 35 · Debugging, Testing, and Analysis |
| conversion specification | The part of a printf format string, %[flags][width][.precision][length]conversion, that describes how one argument is printed. | 8 · Formatted Input and Output |
| conversion specifier | A placeholder beginning with % in a printf format string that says how the next argument is to be formatted. | 3 · Program Structure, Style, and Basic Output |
| core dump | A file holding the memory image of a crashed process, which a debugger can examine afterwards. | 35 · Debugging, Testing, and Analysis |
| coverage-guided fuzzing | Fuzzing that instruments the program to see which branches an input reaches and keeps and mutates inputs that reach new code. | 48 · Fuzzing and Security Testing |
| crash minimization | Shrinking a crashing input by removing bytes while the crash still occurs, so the cause is easy to see. | 48 · Fuzzing and Security Testing |
| critical section | A region of code that accesses shared data and must be executed by only one thread at a time. | 41 · Concurrency and the C Memory Model |
| cross-compiler | A compiler that runs on one architecture and produces code for a different one. | 49 · Embedded C and Cross-Compilation |
| ctags | A tool that builds an index of where identifiers are defined so an editor can jump straight to a definition. | 43 · Working in an Existing Codebase |
| ctypes | The Python module for loading shared libraries and calling their C functions. | 46 · ABI and Interfacing with Other Languages |
| dangling else | The ambiguity in which an else attaches to the nearest unmatched if, regardless of indentation. | 9 · Conditional Statements |
| dangling pointer | A pointer to memory that is no longer valid, such as a local variable of a function that has returned. | 13 · Introduction to Pointers |
| data model | The combination of sizes the platform gives to int, long and pointers, such as LP64, LLP64 and ILP32. | 37 · Portability and the Machine Model |
| data race | Unsynchronized access to the same object by two threads where at least one writes, which is undefined behavior. | 41 · Concurrency and the C Memory Model |
| deadlock | A state in which threads each hold a lock another needs, so none can proceed. | 41 · Concurrency and the C Memory Model |
| debouncing | Ignoring the extra edges a mechanical switch produces while it bounces, so one press counts once. | 51 · Interrupts and Real-Time Behavior |
| debug probe | A device that connects to the processor's debug unit over JTAG or SWD and presents a gdb server. | 55 · Embedded Debugging and Testing |
| declaration | A statement that tells the compiler a name's type, for a function its return type and parameter types, without giving the body. | 3 · Program Structure, Style, and Basic Output |
| default promotions | The conversions applied to variadic arguments, turning float into double and types narrower than int into int. | 30 · Function Pointers, Callbacks, and Generic Programming |
| #define | A preprocessor directive that replaces a name with text before compilation, with no type, scope or storage. | 5 · Variables, Types, and Constants |
| deprecation | The process of marking a function as obsolete with a compiler warning, and removing it only in a later major release. | 45 · Packaging and Distributing C Libraries |
| dereferencing | Applying the * operator to a pointer to reach the object it points to, for reading or writing. | 13 · Introduction to Pointers |
| designated initializer | A C99 initializer that names the element to set, as in [2] = 5, leaving the others zero. | 12 · One- and Multi-Dimensional Arrays |
| DESTDIR | A variable that prefixes every install path so an installation can be staged into a temporary root for packaging. | 45 · Packaging and Distributing C Libraries |
| dispatch table | An array of function pointers, often paired with names, that replaces a long switch with a lookup. | 30 · Function Pointers, Callbacks, and Generic Programming |
| do-while loop | A loop that tests its condition after the body, so the body always runs at least once. | 10 · Loops and Flow Control |
| double evaluation | The effect of a macro parameter appearing twice in the body, so any side effect in the argument happens twice. | 28 · The Preprocessor and Modular Programming |
| double free | Calling free twice on the same block, which corrupts the allocator's bookkeeping. | 20 · Memory Errors and Their Diagnosis |
| doubly linked list | A list whose nodes also hold a pointer to the previous node, allowing backward traversal and O(1) removal of a node already in hand. | 32 · Linked Data Structures |
| dup2 | The call that makes one file descriptor a copy of another, which is how redirection is done. | 39 · Processes, Signals, and Low-Level I/O |
| EAGAIN | The error code a non-blocking operation sets when it cannot proceed now, meaning try again later rather than failure. | 47 · Event-Driven and Scalable I/O |
| edge-triggered | An epoll mode that reports a descriptor only when its state changes, so the program must read until EAGAIN. | 47 · Event-Driven and Scalable I/O |
| enum | A declaration of named integer constants that cost no memory and can be used where a compile-time constant is required. | 5 · Variables, Types, and Constants |
| enumeration | A type defining a set of named integer constants, which lets the compiler warn about unhandled values in a switch. | 22 · Unions, Enumerations, and Type Aliases |
| environment variable | A named string setting inherited from the parent process, read in C with getenv. | 31 · Command-Line Interfaces and the Environment |
| EOF | The negative value returned by input functions to signal that the input has ended. | 8 · Formatted Input and Output |
| epoll | A Linux interface that keeps the watched descriptor set in the kernel and returns only the descriptors that are ready. | 47 · Event-Driven and Scalable I/O |
| errno | The variable holding the last error code set by a library function, meaningful only after a failure and to be saved immediately. | 27 · Error Handling Strategies |
| error contract | A stated convention for a whole module covering what status values mean, whether outputs are written on failure and who owns what. | 27 · Error Handling Strategies |
| escape sequence | A backslash notation, such as \n or \t, that writes a single character that cannot be typed directly. | 3 · Program Structure, Style, and Basic Output |
| event loop | A program structure in which one thread repeatedly asks the kernel which descriptors are ready and services only those. | 47 · Event-Driven and Scalable I/O |
| exec | A family of calls that replace the running program of the current process with a different one. | 39 · Processes, Signals, and Low-Level I/O |
| _Exit | The function that terminates the program immediately without running atexit handlers; whether open streams are flushed is implementation-defined. | 31 · Command-Line Interfaces and the Environment |
| exit status | The integer that main returns to whatever launched the program, where 0 means success and non-zero means failure. | 3 · Program Structure, Style, and Basic Output |
| EXIT_FAILURE | The macro from stdlib.h naming an implementation-defined non-zero exit status that means failure. | 3 · Program Structure, Style, and Basic Output |
| EXIT_SUCCESS | The macro from stdlib.h naming the exit status that means success. | 3 · Program Structure, Style, and Basic Output |
| extern | The keyword that declares a variable defined elsewhere, so a header can declare it while exactly one source file defines it. | 28 · The Preprocessor and Modular Programming |
| extern "C" | A C++ linkage specification that makes declarations use C naming and calling conventions so they match a C library. | 46 · ABI and Interfacing with Other Languages |
| external linkage | A name that other translation units can refer to, the default for file-scope functions and variables. | 28 · The Preprocessor and Modular Programming |
| fall-through | Continued execution from one case label into the following ones because a case is a jump target, not a block, until a break. | 9 · Conditional Statements |
| feof | The function that reports whether a previous read has already reached end of file, so it cannot be used as a loop condition. | 26 · Files and Streams |
| FFI (foreign function interface) | A mechanism by which a program in one language calls functions written in another, usually using the C calling convention. | 46 · ABI and Interfacing with Other Languages |
| fflush | The function that forces buffered output to be written out, for example so a prompt appears before input is awaited. | 8 · Formatted Input and Output |
| fgets | The function that reads at most one line into a buffer, always terminates the string, and returns NULL at end of input. | 23 · Program Arguments and Input |
| FILE | The type of the buffered stream handle through which all standard file operations are performed. | 26 · Files and Streams |
| file descriptor | A small non-negative integer that indexes a process's table of open files, with 0, 1 and 2 for stdin, stdout and stderr. | 39 · Processes, Signals, and Low-Level I/O |
| fixed-point arithmetic | Representing fractions as integers with an implied binary point, avoiding floating-point hardware or library code. | 53 · Constrained-Resource Programming |
| fixed-size record | A record of constant size, so the nth one starts at offset n times the size and can be reached directly with fseek. | 26 · Files and Streams |
| fixed-width integer types | Types such as int32_t and uint8_t from stdint.h whose size in bits is exactly specified. | 37 · Portability and the Machine Model |
| for loop | A counted loop that puts initialization, condition and update in one header. | 10 · Loops and Flow Control |
| fork | The system call that duplicates the calling process, returning the child's pid in the parent and 0 in the child. | 39 · Processes, Signals, and Low-Level I/O |
| format string vulnerability | A flaw caused by passing user input as the format of printf, letting specifiers such as %n read or write memory. | 36 · Undefined Behavior and Secure Coding |
| -fPIC | The compiler option that produces position-independent code, required for shared libraries because they may be loaded at any address. | 29 · Building Programs and Libraries |
| fragmentation | Free memory split into pieces too small to satisfy a request, even though the total free memory would be enough. | 53 · Constrained-Resource Programming |
| free | The function that returns a heap block to the allocator; free(NULL) is defined to do nothing. | 19 · Dynamic Memory Allocation |
| freestanding environment | A C implementation that guarantees only the language and a few headers and does not provide main as entry point, printf or malloc. | 49 · Embedded C and Cross-Compilation |
| fseek | The function that moves a stream's position to a given offset from the start, the current position or the end. | 26 · Files and Streams |
| function definition | A function declaration that also supplies the body, of which a program may contain only one per function. | 11 · Functions |
| function pointer | A pointer that holds the address of a function and can be used to call it. | 30 · Function Pointers, Callbacks, and Generic Programming |
| function prototype | A declaration giving a function's return and parameter types so the compiler can check calls against them. | 2 · History, Standards, and the Compilation Model |
| function-like macro | A macro with parameters that the preprocessor expands as text, so its body and parameters need parentheses. | 28 · The Preprocessor and Modular Programming |
| fuzz target | The function that feeds fuzzer-generated bytes to the code under test and must be deterministic, fast and free of leftover state. | 48 · Fuzzing and Security Testing |
| -fvisibility=hidden | A compiler option that hides all symbols by default so that only those explicitly marked are exported from a shared library. | 45 · Packaging and Distributing C Libraries |
| GDB | The GNU debugger, used to run a program under control, set breakpoints, step through code and inspect state. | 35 · Debugging, Testing, and Analysis |
| _Generic | A C11 selection expression that chooses one of several expressions at compile time according to the type of a controlling expression. | 30 · Function Pointers, Callbacks, and Generic Programming |
| getaddrinfo | The function that resolves a host name and service into ready-to-use socket address structures for IPv4 and IPv6. | 40 · Network Programming with Sockets |
| getchar | The function that reads one character from standard input and returns it as an int so EOF can be distinguished. | 8 · Formatted Input and Output |
| getopt | The POSIX function that parses command-line options, handling combined flags, attached arguments and the -- separator. | 31 · Command-Line Interfaces and the Environment |
| git bisect | A Git command that binary-searches the commit history to find the first commit that introduced a bug. | 43 · Working in an Existing Codebase |
| goto | A statement that jumps to a label in the same function, still used for leaving nested loops and for error-path cleanup. | 10 · Loops and Flow Control |
| goto cleanup idiom | A single cleanup label that every failure path jumps to, releasing resources that were initialized to NULL and so giving one exit per function. | 27 · Error Handling Strategies |
| half-open range | A range written [0, n) that includes its first value and excludes its last, the canonical form of a C loop. | 10 · Loops and Flow Control |
| hardware abstraction layer (HAL) | A boundary between logic and hardware access that lets the logic run on a host with a fake hardware layer. | 55 · Embedded Debugging and Testing |
| hardware breakpoint | A breakpoint implemented by the processor's comparators, needed for code in flash and limited in number. | 55 · Embedded Debugging and Testing |
| hash table | A structure that converts a key to an array index with a hash function so lookup costs one computation and one access on average. | 33 · Trees, Hash Tables, and Abstract Data Types |
| header file | A text file of declarations that #include pastes into a source file so the compiler knows library names. | 3 · Program Structure, Style, and Basic Output |
| heap | The region of memory from which a program requests blocks at run time and which it must give back itself. | 19 · Dynamic Memory Allocation |
| heap overrun | Reading or writing past the end of a heap block, typically damaging a neighboring value or the allocator's metadata. | 20 · Memory Errors and Their Diagnosis |
| hexadecimal | Base-16 notation in which each digit stands for exactly four bits, making it a compact way to write bit patterns. | 4 · Data Representation |
| hosted environment | A C implementation that calls main for you and provides the whole standard library. | 49 · Embedded C and Cross-Compilation |
| identifier | A name for a variable, function or other entity, made of letters, digits and underscores and not starting with a digit. | 5 · Variables, Types, and Constants |
| IEEE 754 | The standard that stores a floating-point number as a sign, an exponent and a fraction (mantissa) field. | 4 · Data Representation |
| implementation-defined behavior | Behavior that the standard leaves to the implementation, which must choose one result and document it. | 36 · Undefined Behavior and Secure Coding |
| implicit conversion | A type conversion the compiler performs automatically in expressions, assignments, argument passing and returns. | 7 · Type Conversions |
| implicit int | The old rule that a missing type means int, no longer valid since C99. | 56 · Maintaining Long-Lived C Codebases |
| include guard | An #ifndef/#define/#endif wrapper that makes a header's body be processed only once per translation unit. | 28 · The Preprocessor and Modular Programming |
| inline assembly | Machine instructions written directly inside C source, for operations that C cannot express. | 46 · ABI and Interfacing with Other Languages |
| input buffer | The area where a stream collects typed characters until a line is complete, so unconsumed characters stay for the next read. | 8 · Formatted Input and Output |
| integer division | Division of two integers, which discards the fractional part by truncating the result toward zero. | 6 · Operators and Expressions |
| integer overflow | A result too large for its type: for signed types it is undefined behavior, unsigned types wrap around, and in a size calculation it can cause a too-small allocation. | 36 · Undefined Behavior and Secure Coding |
| integer promotion | The conversion of operands smaller than int, such as char and short, to int before arithmetic. | 7 · Type Conversions |
| internal linkage | A name, declared static at file scope, that cannot be referred to from any other translation unit. | 28 · The Preprocessor and Modular Programming |
| interpreter | A program that reads source code and carries out its meaning directly, statement by statement, each time the program runs. | 1 · Computers, Programs, and the C Toolchain |
| interrupt | A hardware signal that makes the processor suspend the running code, run a handler and then resume. | 51 · Interrupts and Real-Time Behavior |
| interrupt latency | The time from the hardware event to the first instruction of its handler, including waiting for higher-priority handlers and critical sections. | 51 · Interrupts and Real-Time Behavior |
| intrinsic | A compiler-provided function that maps to a specific machine instruction while still letting the optimizer schedule and inline it. | 46 · ABI and Interfacing with Other Languages |
| intrusive list | A list in which the link fields are embedded in the elements themselves, as in the Linux kernel's list_head, so no allocation per link is needed. | 42 · Reading Excellent C |
| invalid free | Calling free on a pointer that did not come from malloc, calloc or realloc, or that is not the exact value returned. | 20 · Memory Errors and Their Diagnosis |
| ISR (interrupt service routine) | The function that runs in response to an interrupt, an ordinary C function on Cortex-M that should do the minimum and return. | 51 · Interrupts and Real-Time Behavior |
| K&R C | The early dialect of C described by Kernighan and Ritchie's 1978 book, before any formal standard existed. | 2 · History, Standards, and the Compilation Model |
| K&R-style definition | An old function definition that lists parameter names first and declares their types afterward, which gives no call-site type checking. | 56 · Maintaining Long-Lived C Codebases |
| KEEP | A linker script directive that prevents unreferenced sections, such as the vector table, from being discarded by garbage collection. | 52 · Linker Scripts and Firmware Memory Layout |
| Kernighan's method | A bit-counting loop that uses v &= v - 1 to clear the lowest set bit, so it runs once per set bit. | 25 · Bit-Level Operations |
| language server | A tool such as clangd that understands the code's syntax and meaning, so it finds definitions and references exactly rather than by text match. | 43 · Working in an Existing Codebase |
| language standard | The formal definition of C that a compiler is asked to follow, chosen with an option such as -std=. | 2 · History, Standards, and the Compilation Model |
| layered configuration | A design in which defaults, a configuration file, environment variables and command-line options are applied in that order, each overriding the last. | 31 · Command-Line Interfaces and the Environment |
| length modifier | A part of a conversion specification, such as l, ll or z, that states the size of the argument type. | 8 · Formatted Input and Output |
| length prefix | A fixed-size number placed before a payload to tell the receiver how many bytes follow, which must be bounded before use. | 40 · Network Programming with Sockets |
| level-triggered | An epoll mode that keeps reporting a descriptor as ready for as long as data remains unread. | 47 · Event-Driven and Scalable I/O |
| libFuzzer | A fuzzing engine shipped with Clang that calls a user-written function, LLVMFuzzerTestOneInput, with generated inputs. | 48 · Fuzzing and Security Testing |
| limits.h | The header that defines the ranges of the integer types as constants such as INT_MAX, so a program can query its own machine. | 5 · Variables, Types, and Constants |
| linked list | A sequence of nodes, each holding data and the address of the next, ending with a NULL pointer. | 32 · Linked Data Structures |
| linker | The program that combines object files and libraries, resolves every undefined symbol and writes one executable. | 2 · History, Standards, and the Compilation Model |
| linker script | A file that tells the linker which memory regions exist and where each section is placed. | 52 · Linker Scripts and Firmware Memory Layout |
| linker symbol | A name defined in a linker script that has an address but no storage, so C code must take its address. | 52 · Linker Scripts and Firmware Memory Layout |
| linking order | The rule that a traditional linker processes arguments left to right and takes library members only for symbols already undefined, so libraries must follow the objects that use them. | 29 · Building Programs and Libraries |
| literal | A value written directly in the source code, whose type is decided by how it is written. | 5 · Variables, Types, and Constants |
| little-endian | A byte order that stores the least significant byte at the lowest address. | 37 · Portability and the Machine Model |
| -lm | The linker option that links the math library, needed on Linux and placed after the source files. | 24 · The Standard Library Toolbox |
| load address (LMA) | The address where a section is stored in the image, for example flash for .data. | 52 · Linker Scripts and Firmware Memory Layout |
| load factor | The number of entries in a hash table divided by its number of buckets. | 33 · Trees, Hash Tables, and Abstract Data Types |
| lock ordering | A rule that every mutex has a rank and all threads acquire locks in increasing rank, preventing deadlock. | 41 · Concurrency and the C Memory Model |
| logical shift | A right shift that fills the vacated bits with zeros. | 25 · Bit-Level Operations |
| longjmp | The function that restores state saved by setjmp, abandoning the intervening stack frames without running any cleanup. | 38 · Type Qualifiers, Inlining, and Modern C |
| loop invariant | A statement that is true before a loop starts and after every iteration, and so also when it ends. | 10 · Loops and Flow Control |
| machine code | The numeric encoding of instructions that a particular processor can execute directly. | 1 · Computers, Programs, and the C Toolchain |
| main memory (RAM) | A long numbered list of bytes, each with an address, that holds a running program's instructions and data. | 1 · Computers, Programs, and the C Toolchain |
| Makefile | A file of rules, each naming a target, its prerequisites and the commands that rebuild it, which Make runs only when a prerequisite is newer. | 29 · Building Programs and Libraries |
| malloc | The function that allocates a block of the given number of bytes with uninitialized contents, returning NULL on failure. | 19 · Dynamic Memory Allocation |
| map file | A linker report showing which object files contributed which bytes at which addresses. | 52 · Linker Scripts and Firmware Memory Layout |
| mask | A value whose set bits select the bits of another value to set, clear, toggle or test. | 25 · Bit-Level Operations |
| memcpy | The function that copies bytes between regions that must not overlap. | 14 · Strings and Character Handling |
| memmove | The function that copies bytes and handles overlapping source and destination regions correctly. | 14 · Strings and Character Handling |
| memoization | Remembering the results of earlier calls so the same subproblem is not computed again. | 18 · Recursion |
| memory leak | A heap block that was allocated and never freed, so memory use grows until allocation eventually fails. | 20 · Memory Errors and Their Diagnosis |
| memory order | The ordering guarantee an atomic operation gives about how one thread's memory operations are seen by others. | 41 · Concurrency and the C Memory Model |
| memory-mapped I/O | A scheme in which hardware registers appear at addresses in the normal address space and are accessed like memory. | 50 · Memory-Mapped I/O and Hardware Registers |
| merge | A Git operation that joins two branches with a merge commit, preserving the true history. | 44 · Collaborative Development and Code Review |
| message framing | Imposing message boundaries on a byte stream, for example with a delimiter or a length prefix. | 40 · Network Programming with Sockets |
| minimal change | A fix limited to what the defect requires, with no reformatting or cleanup mixed in, so it is easy to review, revert and backport. | 43 · Working in an Existing Codebase |
| -MMD -MP | Compiler options that write a dependency file listing the headers each source includes, so Make rebuilds files when a header changes. | 29 · Building Programs and Libraries |
| modulo bias | The slight excess of low values when rand() % n is used and RAND_MAX + 1 is not a multiple of n. | 24 · The Standard Library Toolbox |
| mutex | A lock ensuring only one thread at a time is inside a critical section and ordering the memory effects between threads. | 41 · Concurrency and the C Memory Model |
| name mangling | The encoding of parameter types into a function's symbol name, which C++ uses to support overloading. | 46 · ABI and Interfacing with Other Languages |
| NaN | The special floating-point value, Not a Number, produced by undefined operations such as 0.0/0.0, which is not equal even to itself. | 4 · Data Representation |
| NDEBUG | The macro that, when defined, removes every assert from the compiled code. | 27 · Error Handling Strategies |
| newlib | A small C library for embedded targets whose printf links but calls a _write function that the programmer must supply. | 49 · Embedded C and Cross-Compilation |
| nm | A tool that lists the symbols of an object file or library, showing whether each is defined, undefined, local or external. | 29 · Building Programs and Libraries |
| node | A structure in a linked data structure that holds an element together with the pointers linking it to other nodes. | 32 · Linked Data Structures |
| non-blocking descriptor | A file descriptor on which operations that would have to wait return immediately with EAGAIN instead of suspending the caller. | 47 · Event-Driven and Scalable I/O |
| _Noreturn | A function specifier declaring that the function never returns to its caller. | 38 · Type Qualifiers, Inlining, and Modern C |
| NULL | The macro for a null pointer constant; a null pointer compares unequal to a pointer to any object and is used to mean no object. | 13 · Introduction to Pointers |
| null terminator | The character '\0', with value zero, that marks the end of a C string. | 14 · Strings and Character Handling |
| NVIC | The Cortex-M interrupt controller that enables interrupts and sets their priorities. | 51 · Interrupts and Real-Time Behavior |
| object file | A binary file of real machine instructions produced by the assembler, in which calls to outside functions are still unresolved. | 2 · History, Standards, and the Compilation Model |
| off-by-one error | A bug in which a loop runs one iteration too many or too few, often by mishandling the first element, last element or empty case. | 10 · Loops and Flow Control |
| one-past-the-end pointer | A pointer to the position just after the last element of an array; it may be formed and compared but never dereferenced. | 15 · Pointer Arithmetic and Arrays |
| opaque pointer | A pointer to a structure declared in a header but defined only in the source file, hiding its layout from callers. | 28 · The Preprocessor and Modular Programming |
| optimization level | A compiler option such as -O0, -O2 or -Os that sets how aggressively the compiler transforms the code. | 34 · Performance and Memory Layout |
| optind | The getopt variable holding the index of the next argument to process, which after parsing is the first operand. | 31 · Command-Line Interfaces and the Environment |
| -Os | A compiler option that optimizes for small code size rather than speed. | 53 · Constrained-Resource Programming |
| output parameter | A pointer parameter through which a function writes a result, letting the return value report success or failure. | 11 · Functions |
| ownership | The rule stating which part of the program is responsible for freeing an allocated block, which an interface must make explicit. | 19 · Dynamic Memory Allocation |
| pass by value | The rule that C copies each argument into the parameter, so a function cannot change the caller's variable. | 11 · Functions |
| perror | The function that prints a message followed by the system's description of the current errno value to stderr. | 26 · Files and Streams |
| pipe | A one-way channel between two file descriptors, used to connect processes. | 39 · Processes, Signals, and Low-Level I/O |
| pipeline | A chain of programs in which the standard output of each is connected to the standard input of the next. | 23 · Program Arguments and Input |
| pkg-config | A tool that reads a library's .pc file to supply the compiler and linker flags needed to use it. | 45 · Packaging and Distributing C Libraries |
| pointer | A variable that holds the address of another object, declared with * and given a type that decides how it is read. | 13 · Introduction to Pointers |
| pointer arithmetic | Adding an integer to a pointer or subtracting one from it, which moves the pointer by whole elements of the pointed-to type, not by bytes. | 15 · Pointer Arithmetic and Arrays |
| pointer to an array | A single pointer to a whole array, declared like int (*a)[5], where the parentheses make the asterisk apply first. | 15 · Pointer Arithmetic and Arrays |
| pointer to pointer | A pointer that holds the address of another pointer, declared with two asterisks, as in int **pp. | 15 · Pointer Arithmetic and Arrays |
| poll | A POSIX call that waits on an array of descriptors with no fixed limit, but whose cost per call grows with the number of descriptors. | 47 · Event-Driven and Scalable I/O |
| pool allocator | An allocator handing out fixed-size blocks from a free list, giving constant-time allocation and no fragmentation. | 53 · Constrained-Resource Programming |
| popcount | The number of bits set to 1 in a value. | 25 · Bit-Level Operations |
| post-order traversal | A traversal that visits both subtrees before the node itself, which makes it the safe order for freeing a tree. | 33 · Trees, Hash Tables, and Abstract Data Types |
| postcondition | A condition that a function guarantees about its results and effects when it returns, and that callers rely on. | 43 · Working in an Existing Codebase |
| precedence | The rule deciding which operator binds more tightly in an expression, and therefore how it is grouped. | 6 · Operators and Expressions |
| precondition | A condition that must hold when a function is entered for it to behave correctly. | 43 · Working in an Existing Codebase |
| preemptive scheduler | A scheduler that interrupts the running task as soon as a higher-priority task becomes ready. | 54 · Real-Time Operating Systems |
| prefetching | Hardware fetching memory ahead of use after detecting a sequential access pattern. | 34 · Performance and Memory Layout |
| preprocessor | The first translation stage, a text manipulator that pastes in included files, substitutes macros and removes comments. | 2 · History, Standards, and the Compilation Model |
| priority inheritance | A mechanism in which a mutex owner temporarily takes the priority of a higher-priority task waiting for it. | 54 · Real-Time Operating Systems |
| priority inversion | A situation where a high-priority task waits on a lock held by a low-priority task that a medium-priority task keeps from running. | 54 · Real-Time Operating Systems |
| profiling | Measuring where a running program spends its time, for example with perf or gprof, instead of guessing. | 34 · Performance and Memory Layout |
| programmer error | A bug such as a null pointer passed where forbidden, handled with an assertion rather than runtime recovery. | 27 · Error Handling Strategies |
| pseudo-random number | A number produced by a deterministic generator such as rand, predictable from a few outputs and unsuitable for security. | 24 · The Standard Library Toolbox |
| ptrdiff_t | The signed integer type from <stddef.h> that holds the result of subtracting two pointers into the same array. | 15 · Pointer Arithmetic and Arrays |
| public header | A header installed for users of a library, whose every declaration is a promise about the library's interface. | 45 · Packaging and Distributing C Libraries |
| pull request | A proposed change submitted for review, made up of a title, a description and a diff. | 44 · Collaborative Development and Code Review |
| Q16.16 | A 32-bit fixed-point format with 16 bits for the integer part and 16 bits for the fraction. | 53 · Constrained-Resource Programming |
| qsort | The standard library function that sorts an array of any element type using a comparator supplied by the caller. | 30 · Function Pointers, Callbacks, and Generic Programming |
| queue | A first-in, first-out container with enqueue at the tail and dequeue at the head. | 32 · Linked Data Structures |
| read-modify-write | Reading a register, changing only the intended bits and writing the value back so the other bits are preserved. | 50 · Memory-Mapped I/O and Hardware Registers |
| real-time | Behavior in which responses are predictable and always within a deadline, rather than merely fast on average. | 54 · Real-Time Operating Systems |
| realloc | The function that grows or shrinks a block, preserving its contents; it may move the block, leaving old pointers dangling. | 19 · Dynamic Memory Allocation |
| rebase | A Git operation that replays your commits on top of another branch to give a linear history, which rewrites those commits. | 44 · Collaborative Development and Code Review |
| recursion | A function calling itself, suited to problems that contain a smaller copy of themselves; each call adds a stack frame. | 18 · Recursion |
| recursive case | The branch of a recursive function that calls itself on input strictly closer to the base case. | 18 · Recursion |
| reentrant function | A function that keeps no shared static state, with the caller supplying any buffer, so threads can call it concurrently. | 41 · Concurrency and the C Memory Model |
| refactoring | Changing a program's structure in small, test-verified steps without changing its behavior. | 56 · Maintaining Long-Lived C Codebases |
| register | A very fast storage slot inside the processor that holds a value the processor is working with right now. | 1 · Computers, Programs, and the C Toolchain |
| register overlay | A struct type laid over a peripheral's address so that its members correspond to the hardware registers. | 50 · Memory-Mapped I/O and Hardware Registers |
| regression | A defect in behavior that worked correctly in an earlier version of the software. | 43 · Working in an Existing Codebase |
| rehashing | Recomputing every entry's bucket after the table grows, because each index depends on the bucket count. | 33 · Trees, Hash Tables, and Abstract Data Types |
| relative tolerance | A comparison margin that scales with the size of the values, used instead of == to compare floating-point numbers. | 7 · Type Conversions |
| remainder operator (%) | The integer operator whose result takes the sign of the dividend, so it is not a mathematical modulo. | 6 · Operators and Expressions |
| reserved bits | Register bits whose meaning is not defined and which should be written back as they were read. | 50 · Memory-Mapped I/O and Hardware Registers |
| reset handler | The code that runs at power-on, initializing .data and .bss before calling main. | 49 · Embedded C and Cross-Compilation |
| restrict | A qualifier promising that the object a pointer reaches is accessed through no other pointer in that scope. | 36 · Undefined Behavior and Secure Coding |
| right-left rule | A procedure for reading a C declaration by starting at the identifier and alternating right and left while obeying parentheses. | 16 · Pointers as Function Parameters |
| ring buffer | A fixed-size circular queue with a head and tail index, which needs no lock with exactly one producer and one consumer. | 51 · Interrupts and Real-Time Behavior |
| row-major order | The layout of a two-dimensional array in which each complete row is stored after the previous one in contiguous memory. | 12 · One- and Multi-Dimensional Arrays |
| RTOS (real-time operating system) | A small operating system whose scheduler gives each task its own stack and runs tasks according to priority. | 54 · Real-Time Operating Systems |
| sanitizer | A compiler-inserted runtime check, such as -fsanitize=undefined or address, that reports errors as the program runs. | 36 · Undefined Behavior and Secure Coding |
| scanf | The function that reads formatted input into variables whose addresses it is given and returns the number of items assigned. | 8 · Formatted Input and Output |
| scope | The part of the program in which a name is visible, such as block scope or file scope. | 17 · Scope, Lifetime, and Program Memory Layout |
| seed corpus | A set of valid example inputs given to a fuzzer so it need not rediscover the input format. | 48 · Fuzzing and Security Testing |
| select | A POSIX call that waits on a set of descriptors, limited by FD_SETSIZE and costing time proportional to the set size on every call. | 47 · Event-Driven and Scalable I/O |
| self-pipe trick | A technique in which a signal handler writes one byte to a pipe so the event loop sees the signal as an ordinary readable event. | 47 · Event-Driven and Scalable I/O |
| self-referential structure | A structure that contains a pointer to its own type, which is the basis of linked data structures. | 21 · Structures |
| semantic versioning | A MAJOR.MINOR.PATCH numbering scheme in which the part that changes tells consumers whether they must adapt their code. | 44 · Collaborative Development and Code Review |
| semihosting | A debugging facility that lets the target use host services such as console output through an attached debugger, at high cost in time. | 55 · Embedded Debugging and Testing |
| sentinel node | A permanent dummy node that closes a circular list so every real node always has both neighbors and no null checks are needed. | 32 · Linked Data Structures |
| sequence point | A point in evaluation at which all earlier side effects are complete and no later ones have begun. | 6 · Operators and Expressions |
| setjmp | The function that records the machine state so that a later longjmp can jump back to it. | 38 · Type Qualifiers, Inlining, and Modern C |
| shadowing | An inner declaration hiding an outer one of the same name, which the compiler reports only with -Wshadow. | 17 · Scope, Lifetime, and Program Memory Layout |
| shared library | A library kept in a separate file and loaded at run time, so many programs can use one copy. | 29 · Building Programs and Libraries |
| short-circuit evaluation | The guarantee that && and || skip the right operand when the left one already settles the result. | 6 · Operators and Expressions |
| sig_atomic_t | The integer type that can be read and written atomically with respect to a signal handler, used with volatile for flags. | 39 · Processes, Signals, and Low-Level I/O |
| signal | An asynchronous notification delivered to a process, whose handler runs at an arbitrary point in the program. | 39 · Processes, Signals, and Low-Level I/O |
| SIGPIPE | The signal sent when writing to a connection the peer has closed, which terminates the process by default. | 40 · Network Programming with Sockets |
| size_t | The unsigned integer type, produced by sizeof, that is large enough to hold the size of any object. | 5 · Variables, Types, and Constants |
| sizeof | The compile-time operator that gives the size in bytes of a type or object, as a value of type size_t. | 5 · Variables, Types, and Constants |
| snprintf | The function that writes at most a given number of bytes, always terminates, and returns the length it would have needed. | 14 · Strings and Character Handling |
| SO_REUSEADDR | A socket option that lets a server rebind its address while the old one is still in TIME_WAIT. | 40 · Network Programming with Sockets |
| socket | An endpoint for network communication, represented by a file descriptor. | 40 · Network Programming with Sockets |
| soname | The name recorded in a shared library and in programs linked against it, containing only the major version, which the dynamic loader uses to find the library. | 45 · Packaging and Distributing C Libraries |
| spurious wakeup | A return from a condition wait without the condition being true, which is why the wait must sit in a loop. | 41 · Concurrency and the C Memory Model |
| srand | The function that seeds the pseudo-random generator, to be called once at program start. | 24 · The Standard Library Toolbox |
| stack | A last-in, first-out container supporting push and pop at one end. | 32 · Linked Data Structures |
| stack frame | The block of stack memory created for one function call, holding its parameters, local variables and return address and discarded on return. | 17 · Scope, Lifetime, and Program Memory Layout |
| stack overflow | The fatal failure that occurs when the stack grows past its fixed limit, usually from deep recursion or a large local array. | 17 · Scope, Lifetime, and Program Memory Layout |
| stack painting | Filling the stack with a known pattern at startup so the high-water mark can be found later. | 52 · Linker Scripts and Firmware Memory Layout |
| starvation | A condition in which a high-priority task that never blocks prevents lower-priority tasks from ever running. | 54 · Real-Time Operating Systems |
| static analysis | Examining a program without running it to find errors on paths that tests may never take, as GCC's -fanalyzer does. | 35 · Debugging, Testing, and Analysis |
| static function | A function marked static so that its name is visible only within the current source file. | 11 · Functions |
| static inline | A function definition, usually in a header, that gives each translation unit its own inlinable copy and avoids multiple-definition errors. | 38 · Type Qualifiers, Inlining, and Modern C |
| static library | An archive of object files from which the linker copies the members it needs into the executable. | 29 · Building Programs and Libraries |
| static local | A variable declared static inside a function: its name is visible only there, but it lives for the whole run and keeps its value between calls. | 17 · Scope, Lifetime, and Program Memory Layout |
| static_assert | A compile-time check of a condition, costing nothing at run time and impossible to disable. | 27 · Error Handling Strategies |
| status return | A return value that only reports success or failure, while the actual result is delivered through an output parameter. | 16 · Pointers as Function Parameters |
| -std= | The compiler option that selects the language standard, such as c17, so that the meaning of the source is not left to the default. | 2 · History, Standards, and the Compilation Model |
| stderr | The standard error stream, a separate output channel for diagnostics so results sent to stdout can be redirected cleanly. | 8 · Formatted Input and Output |
| storage duration | How long an object exists: automatic, static, allocated or thread, which is independent of where its name is visible. | 17 · Scope, Lifetime, and Program Memory Layout |
| strcmp | The function that compares two strings and returns 0 when they are equal, a result opposite to a boolean. | 14 · Strings and Character Handling |
| strict aliasing | The rule that an object may be accessed only through an lvalue of a compatible type, with char as the exception. | 36 · Undefined Behavior and Secure Coding |
| string | A sequence of characters ending in the null character, with its length recorded nowhere. | 14 · Strings and Character Handling |
| string literal | Text in double quotes that the compiler stores as a null-terminated array; modifying it is undefined behavior, so it is usually placed in read-only memory. | 14 · Strings and Character Handling |
| strncpy | A bounded copy function that does not write a terminator when the source fills the bound, so it is not a safe strcpy. | 14 · Strings and Character Handling |
| strtok | The function that splits a string into tokens by writing terminators into it and keeping hidden static state. | 14 · Strings and Character Handling |
| strtok_r | A reentrant version of strtok that keeps its position in a caller-supplied variable instead of hidden static state. | 44 · Collaborative Development and Code Review |
| strtol | The conversion function that parses a long and reports failure through its end pointer and errno. | 23 · Program Arguments and Input |
| struct tag | The name written after the struct keyword, required inside a self-referential definition because the typedef name does not exist yet. | 21 · Structures |
| structure | A type that groups members of different types under one name and can be assigned, copied, passed and returned by value. | 21 · Structures |
| structure of arrays | A layout that stores each field in its own array so a loop touching one field uses only the cache lines it needs. | 34 · Performance and Memory Layout |
| structure padding | Unnamed bytes the compiler inserts between or after members to satisfy alignment, whose contents are unspecified. | 22 · Unions, Enumerations, and Type Aliases |
| superloop | A design in which all tasks run in one endless loop in sequence, so each task's response time is the sum of the others. | 54 · Real-Time Operating Systems |
| switch | A statement that compares one integer expression against a list of constant case labels and jumps to the matching one. | 9 · Conditional Statements |
| tagged union | A union paired with an enumeration, inside a structure, that records which member is currently valid. | 22 · Unions, Enumerations, and Type Aliases |
| tail call | A call whose result is returned directly with nothing left to do afterwards; a compiler may reuse the frame, but C does not require it. | 18 · Recursion |
| target triple | The prefix naming a toolchain's target, such as arm-none-eabi, which gives architecture, vendor or operating system, and ABI. | 49 · Embedded C and Cross-Compilation |
| TCP | A reliable, ordered, connection-based stream protocol that does not preserve message boundaries. | 40 · Network Programming with Sockets |
| technical debt | Accumulated shortcuts and poor structure in code, worth repaying only according to change frequency, danger, what it blocks and the risk of fixing. | 56 · Maintaining Long-Lived C Codebases |
| termination argument | The demonstration that some quantity strictly decreases on every recursive call and is bounded below, so the recursion must end. | 18 · Recursion |
| test case reduction | Shrinking a failing input step by step to the smallest one that still fails. | 35 · Debugging, Testing, and Analysis |
| thread | An independent flow of execution that shares the heap, globals and file descriptors of its process but has its own stack. | 41 · Concurrency and the C Memory Model |
| _Thread_local | A storage class giving each thread its own copy of a variable. | 41 · Concurrency and the C Memory Model |
| threat modeling | Asking what is worth protecting, where untrusted input enters, what can go wrong and what stops it, before writing the code. | 48 · Fuzzing and Security Testing |
| time_t | The type holding calendar time, normally seconds since the epoch, as returned by time. | 24 · The Standard Library Toolbox |
| trace buffer | A circular array in RAM of timestamped events that is read afterwards and perturbs timing very little. | 55 · Embedded Debugging and Testing |
| tree traversal | Visiting all nodes of a tree in a set order: in-order, pre-order or post-order. | 33 · Trees, Hash Tables, and Abstract Data Types |
| trust boundary | The point where untrusted data enters a program and where it must be validated once, so inner code can assume it is well formed. | 48 · Fuzzing and Security Testing |
| two's complement | The signed integer representation in which the most significant bit has a negative weight, giving one zero and shared add and subtract hardware. | 4 · Data Representation |
| type punning | Reading a value's bytes as a different type, commonly done by writing one union member and reading another. | 22 · Unions, Enumerations, and Type Aliases |
| typedef | A declaration that gives an existing type a new name without creating a new type. | 22 · Unions, Enumerations, and Type Aliases |
| UART | A peripheral that sends and receives serial data one byte at a time. | 50 · Memory-Mapped I/O and Hardware Registers |
| UDP | A connectionless protocol that preserves datagram boundaries but may lose, duplicate or reorder them. | 40 · Network Programming with Sockets |
| undefined behavior | Behavior for which the standard imposes no requirements at all, so the compiler may assume it never occurs. | 36 · Undefined Behavior and Secure Coding |
| undefined reference | A linker error reporting that a function or variable was used but no definition of it could be found. | 1 · Computers, Programs, and the C Toolchain |
| uninitialized variable | A local variable declared without a value, which holds arbitrary leftover bytes and whose use is undefined behavior. | 5 · Variables, Types, and Constants |
| union | A type whose members share the same storage, so its size is that of its largest member and only one member is valid at a time. | 22 · Unions, Enumerations, and Type Aliases |
| unit test | A small test that checks one piece of code, such as a function, against expected results. | 35 · Debugging, Testing, and Analysis |
| unspecified behavior | Behavior for which the standard allows several possibilities without requiring that the choice be documented. | 36 · Undefined Behavior and Secure Coding |
| use after free | Accessing a block through a pointer after it has been freed, which may read stale data or corrupt another object. | 20 · Memory Errors and Their Diagnosis |
| usual arithmetic conversions | The rules that bring both operands of a binary operator to a common type, converting the signed operand to unsigned when ranks are equal. | 7 · Type Conversions |
| UTF-8 | A Unicode encoding using one to four bytes per code point that leaves ASCII unchanged. | 37 · Portability and the Machine Model |
| Valgrind | A tool that runs an unmodified binary under emulation to detect memory errors, including reads of uninitialized memory, at a large slowdown. | 20 · Memory Errors and Their Diagnosis |
| variable-length array (VLA) | An array whose size is determined at run time, placed on the stack with no way to detect failure. | 38 · Type Qualifiers, Inlining, and Modern C |
| variadic function | A function such as printf that takes a variable number of arguments and receives no type information about the extra ones. | 8 · Formatted Input and Output |
| vector table | A table of addresses in flash that the processor reads at reset and on exceptions, starting with the initial stack pointer and reset handler. | 49 · Embedded C and Cross-Compilation |
| version script | A linker file that lists which symbols a shared library exports and makes all others local. | 45 · Packaging and Distributing C Libraries |
| virtual address (VMA) | The address where a section is located when the program runs, for example RAM for .data. | 52 · Linker Scripts and Firmware Memory Layout |
| void * | A pointer with its type removed that can hold any object pointer but cannot be dereferenced until converted. | 13 · Introduction to Pointers |
| volatile | A qualifier telling the compiler that an object may change by means it cannot see, so every access must really happen. | 38 · Type Qualifiers, Inlining, and Modern C |
| wait | The call by which a parent collects a child's exit status, so the child no longer remains a zombie. | 39 · Processes, Signals, and Low-Level I/O |
| warning | A compiler message about code that is legal but probably wrong; unlike an error, it does not stop the build. | 1 · Computers, Programs, and the C Toolchain |
| watchdog | A hardware timer that resets the device unless the software periodically feeds it, restarting a hung program. | 53 · Constrained-Resource Programming |
| watchpoint | A debugger setting that stops the program when the value of a given variable changes. | 35 · Debugging, Testing, and Analysis |
| wfi | The instruction that halts the core until an interrupt arrives, saving power. | 53 · Constrained-Resource Programming |
| while loop | A loop that tests its condition before each iteration, so the body may never run. | 10 · Loops and Flow Control |
| wild pointer | An uninitialized pointer that holds an arbitrary address, so writing through it corrupts memory. | 13 · Introduction to Pointers |
| wire format | A binary layout with fixed widths, offsets and byte order so data can move between machines unchanged. | 37 · Portability and the Machine Model |
| write-one-to-clear (W1C) | A register bit type cleared by writing a 1 to it, so a read-modify-write would clear other pending flags. | 50 · Memory-Mapped I/O and Hardware Registers |
| zombie process | A child that has finished but whose exit status has not yet been collected by its parent. | 39 · Processes, Signals, and Low-Level I/O |
No terms match your search.
Course page: Operating Systems · © Sercan Külcü. All rights reserved.