SYSTEMS / Learn
Saved on this device>

Book companion

Two ways into the same ideas.

Follow a concept through the book, or start with something you want to do. Practise it, explain it, and return to it until it sticks.

1 · Understand → 2 · Explain from memory → 3 · Practise → 4 · Spaced review

Chapter numbers and English book headings follow the supplied contents. Outline-only topics do not have lessons or exercises yet.

CS:APP

Computer Systems: A Programmer’s Perspective
2Representing and Manipulating Information10 sections with practice
CS:APP · Representing and Manipulating Information · Learning-oriented
SectionConcept / topicStudy
2.1Information Storage
2.1.1Hexadecimal Notation
2.1.2WordsOutline only
2.1.3Data SizesOutline only
2.1.4Addressing and Byte Ordering
2.1.5Representing StringsOutline only
2.1.6Representing CodeOutline only
2.1.7Introduction to Boolean Algebra
2.1.8Bit-Level Operations in C
2.1.9Logical Operations in C
2.1.10Shift Operations in C
2.2Integer Representations
2.2.1Integral Data TypesOutline only
2.2.2Unsigned Encodings
2.2.3Two’s-Complement Encodings
2.2.4Conversions Between Signed and UnsignedOutline only
2.2.5Signed vs. Unsigned in COutline only
2.2.6Expanding the Bit Representation of a NumberOutline only
2.2.7Truncating Numbers
2.2.8Advice on Signed vs. UnsignedOutline only
2.3Integer Arithmetic
2.3.1Unsigned AdditionOutline only
2.3.2Two’s-Complement AdditionOutline only
2.3.3Two’s-Complement Negation
2.3.4Unsigned MultiplicationOutline only
2.3.5Two’s-Complement MultiplicationOutline only
2.3.6Multiplying by ConstantsOutline only
2.3.7Dividing by Powers of TwoOutline only
2.3.8Final Thoughts on Integer ArithmeticOutline only
2.4Floating Point
2.4.1Fractional Binary NumbersOutline only
2.4.2IEEE Floating-Point RepresentationOutline only
2.4.3Example NumbersOutline only
2.4.4RoundingOutline only
2.4.5Floating-Point OperationsOutline only
2.4.6Floating Point in COutline only
2.5SummaryOutline only
3Machine-Level Representation of ProgramsOutline only
CS:APP · Machine-Level Representation of Programs · Learning-oriented
SectionConcept / topicStudy
3.1A Historical PerspectiveOutline only
3.2Program Encodings
3.2.1Machine-Level CodeOutline only
3.2.2Code ExamplesOutline only
3.2.3Notes on FormattingOutline only
3.3Data FormatsOutline only
3.4Accessing Information
3.4.1Operand SpecifiersOutline only
3.4.2Data Movement InstructionsOutline only
3.4.3Data Movement ExampleOutline only
3.5Arithmetic and Logical Operations
3.5.1Load Effective AddressOutline only
3.5.2Unary and Binary OperationsOutline only
3.5.3Shift OperationsOutline only
3.5.4DiscussionOutline only
3.5.5Special Arithmetic OperationsOutline only
3.6Control
3.6.1Condition CodesOutline only
3.6.2Accessing the Condition CodesOutline only
3.6.3Jump Instructions and Their EncodingsOutline only
3.6.4Translating Conditional BranchesOutline only
3.6.5LoopsOutline only
3.6.6Conditional Move InstructionsOutline only
3.6.7Switch StatementsOutline only
3.7Procedures
3.7.1Stack Frame StructureOutline only
3.7.2Transferring ControlOutline only
3.7.3Register Usage ConventionsOutline only
3.7.4Procedure ExampleOutline only
3.7.5Recursive ProceduresOutline only
3.8Array Allocation and Access
3.8.1Basic PrinciplesOutline only
3.8.2Pointer ArithmeticOutline only
3.8.3Nested ArraysOutline only
3.8.4Fixed-Size ArraysOutline only
3.8.5Variable-Size ArraysOutline only
3.9Heterogeneous Data Structures
3.9.1StructuresOutline only
3.9.2UnionsOutline only
3.9.3Data AlignmentOutline only
3.10Putting It Together: Understanding PointersOutline only
3.11Life in the Real World: Using the gdb DebuggerOutline only
3.12Out-of-Bounds Memory References and Buffer Overflow
3.12.1Thwarting Buffer Overflow AttacksOutline only
3.13x86-64: Extending IA32 to 64 Bits
3.13.1History and Motivation for x86-64Outline only
3.13.2An Overview of x86-64Outline only
3.13.3Accessing InformationOutline only
3.13.4ControlOutline only
3.13.5Data StructuresOutline only
3.13.6Concluding Observations about x86-64Outline only
3.14Machine-Level Representations of Floating-Point ProgramsOutline only
3.15SummaryOutline only
4Processor ArchitectureOutline only
CS:APP · Processor Architecture · Learning-oriented
SectionConcept / topicStudy
4.1The Y86 Instruction Set Architecture
4.1.1Programmer-Visible StateOutline only
4.1.2Y86 InstructionsOutline only
4.1.3Instruction EncodingOutline only
4.1.4Y86 ExceptionsOutline only
4.1.5Y86 ProgramsOutline only
4.1.6Some Y86 Instruction DetailsOutline only
4.2Logic Design and the Hardware Control Language HCL
4.2.1Logic GatesOutline only
4.2.2Combinational Circuits and HCL Boolean ExpressionsOutline only
4.2.3Word-Level Combinational Circuits and HCL Integer ExpressionsOutline only
4.2.4Set MembershipOutline only
4.2.5Memory and ClockingOutline only
4.3Sequential Y86 Implementations
4.3.1Organizing Processing into StagesOutline only
4.3.2SEQ Hardware StructureOutline only
4.3.3SEQ TimingOutline only
4.3.4SEQ Stage ImplementationsOutline only
4.4General Principles of Pipelining
4.4.1Computational PipelinesOutline only
4.4.2A Detailed Look at Pipeline OperationOutline only
4.4.3Limitations of PipeliningOutline only
4.4.4Pipelining a System with FeedbackOutline only
4.5Pipelined Y86 Implementations
4.5.1SEQ+: Rearranging the Computation StagesOutline only
4.5.2Inserting Pipeline RegistersOutline only
4.5.3Rearranging and Relabeling SignalsOutline only
4.5.4Next PC PredictionOutline only
4.5.5Pipeline HazardsOutline only
4.5.6Avoiding Data Hazards by StallingOutline only
4.5.7Avoiding Data Hazards by ForwardingOutline only
4.5.8Load/Use Data HazardsOutline only
4.5.9Exception HandlingOutline only
4.5.10PIPE Stage ImplementationsOutline only
4.5.11Pipeline Control LogicOutline only
4.5.12Performance AnalysisOutline only
4.5.13Unfinished BusinessOutline only
4.6Summary
4.6.1Y86 SimulatorsOutline only
5Optimizing Program PerformanceOutline only
CS:APP · Optimizing Program Performance · Learning-oriented
SectionConcept / topicStudy
5.1Capabilities and Limitations of Optimizing CompilersOutline only
5.2Expressing Program PerformanceOutline only
5.3Program ExampleOutline only
5.4Eliminating Loop InefficienciesOutline only
5.5Reducing Procedure CallsOutline only
5.6Eliminating Unneeded Memory ReferencesOutline only
5.7Understanding Modern Processors
5.7.1Overall OperationOutline only
5.7.2Functional Unit PerformanceOutline only
5.7.3An Abstract Model of Processor OperationOutline only
5.8Loop UnrollingOutline only
5.9Enhancing Parallelism
5.9.1Multiple AccumulatorsOutline only
5.9.2Reassociation TransformationOutline only
5.10Summary of Results for Optimizing Combining CodeOutline only
5.11Some Limiting Factors
5.11.1Register SpillingOutline only
5.11.2Branch Prediction and Misprediction PenaltiesOutline only
5.12Understanding Memory Performance
5.12.1Load PerformanceOutline only
5.12.2Store PerformanceOutline only
5.13Life in the Real World: Performance Improvement TechniquesOutline only
5.14Identifying and Eliminating Performance Bottlenecks
5.14.1Program ProfilingOutline only
5.14.2Using a Profiler to Guide OptimizationOutline only
5.14.3Amdahl’s LawOutline only
5.15SummaryOutline only
6The Memory HierarchyOutline only
CS:APP · The Memory Hierarchy · Learning-oriented
SectionConcept / topicStudy
6.1Storage Technologies
6.1.1Random-Access MemoryOutline only
6.1.2Disk StorageOutline only
6.1.3Solid State DisksOutline only
6.1.4Storage Technology TrendsOutline only
6.2Locality
6.2.1Locality of References to Program DataOutline only
6.2.2Locality of Instruction FetchesOutline only
6.2.3Summary of LocalityOutline only
6.3The Memory Hierarchy
6.3.1Caching in the Memory HierarchyOutline only
6.3.2Summary of Memory Hierarchy ConceptsOutline only
6.4Cache Memories
6.4.1Generic Cache Memory OrganizationOutline only
6.4.2Direct-Mapped CachesOutline only
6.4.3Set Associative CachesOutline only
6.4.4Fully Associative CachesOutline only
6.4.5Issues with WritesOutline only
6.4.6Anatomy of a Real Cache HierarchyOutline only
6.4.7Performance Impact of Cache ParametersOutline only
6.5Writing Cache-friendly CodeOutline only
6.6Putting It Together: The Impact of Caches on Program Performance
6.6.1The Memory MountainOutline only
6.6.2Rearranging Loops to Increase Spatial LocalityOutline only
6.6.3Exploiting Locality in Your ProgramsOutline only
6.7SummaryOutline only
7LinkingOutline only
CS:APP · Linking · Learning-oriented
SectionConcept / topicStudy
7.1Compiler DriversOutline only
7.2Static LinkingOutline only
7.3Object FilesOutline only
7.4Relocatable Object FilesOutline only
7.5Symbols and Symbol TablesOutline only
7.6Symbol Resolution
7.6.1How Linkers Resolve Multiply Defined Global SymbolsOutline only
7.6.2Linking with Static LibrariesOutline only
7.6.3How Linkers Use Static Libraries to Resolve ReferencesOutline only
7.7Relocation
7.7.1Relocation EntriesOutline only
7.7.2Relocating Symbol ReferencesOutline only
7.8Executable Object FilesOutline only
7.9Loading Executable Object FilesOutline only
7.10Dynamic Linking with Shared LibrariesOutline only
7.11Loading and Linking Shared Libraries from ApplicationsOutline only
7.12Position-Independent Code (PIC)Outline only
7.13Tools for Manipulating Object FilesOutline only
7.14SummaryOutline only
8Exceptional Control FlowOutline only
CS:APP · Exceptional Control Flow · Learning-oriented
SectionConcept / topicStudy
8.1Exceptions
8.1.1Exception HandlingOutline only
8.1.2Classes of ExceptionsOutline only
8.1.3Exceptions in Linux/IA32 SystemsOutline only
8.2Processes
8.2.1Logical Control FlowOutline only
8.2.2Concurrent FlowsOutline only
8.2.3Private Address SpaceOutline only
8.2.4User and Kernel ModesOutline only
8.2.5Context SwitchesOutline only
8.3System Call Error HandlingOutline only
8.4Process Control
8.4.1Obtaining Process IDsOutline only
8.4.2Creating and Terminating ProcessesOutline only
8.4.3Reaping Child ProcessesOutline only
8.4.4Putting Processes to SleepOutline only
8.4.5Loading and Running ProgramsOutline only
8.4.6Using fork and execve to Run ProgramsOutline only
8.5Signals
8.5.1Signal TerminologyOutline only
8.5.2Sending SignalsOutline only
8.5.3Receiving SignalsOutline only
8.5.4Signal Handling IssuesOutline only
8.5.5Portable Signal HandlingOutline only
8.5.6Explicitly Blocking and Unblocking SignalsOutline only
8.5.7Synchronizing Flows to Avoid Nasty Concurrency BugsOutline only
8.6Nonlocal JumpsOutline only
8.7Tools for Manipulating ProcessesOutline only
8.8SummaryOutline only
9Virtual MemoryOutline only
CS:APP · Virtual Memory · Learning-oriented
SectionConcept / topicStudy
9.1Physical and Virtual AddressingOutline only
9.2Address SpacesOutline only
9.3VM as a Tool for Caching
9.3.1DRAM Cache OrganizationOutline only
9.3.2Page TablesOutline only
9.3.3Page HitsOutline only
9.3.4Page FaultsOutline only
9.3.5Allocating PagesOutline only
9.3.6Locality to the Rescue AgainOutline only
9.4VM as a Tool for Memory ManagementOutline only
9.5VM as a Tool for Memory ProtectionOutline only
9.6Address Translation
9.6.1Integrating Caches and VMOutline only
9.6.2Speeding up Address Translation with a TLBOutline only
9.6.3Multi-Level Page TablesOutline only
9.6.4Putting It Together: End-to-end Address TranslationOutline only
9.7Case Study: The Intel Core i7/Linux Memory System
9.7.1Core i7 Address TranslationOutline only
9.7.2Linux Virtual Memory SystemOutline only
9.8Memory Mapping
9.8.1Shared Objects RevisitedOutline only
9.8.2The fork Function RevisitedOutline only
9.8.3The execve Function RevisitedOutline only
9.8.4User-level Memory Mapping with the mmap FunctionOutline only
9.9Dynamic Memory Allocation
9.9.1The malloc and free FunctionsOutline only
9.9.2Why Dynamic Memory Allocation?Outline only
9.9.3Allocator Requirements and GoalsOutline only
9.9.4FragmentationOutline only
9.9.5Implementation IssuesOutline only
9.9.6Implicit Free ListsOutline only
9.9.7Placing Allocated BlocksOutline only
9.9.8Splitting Free BlocksOutline only
9.9.9Getting Additional Heap MemoryOutline only
9.9.10Coalescing Free BlocksOutline only
9.9.11Coalescing with Boundary TagsOutline only
9.9.12Putting It Together: Implementing a Simple AllocatorOutline only
9.9.13Explicit Free ListsOutline only
9.9.14Segregated Free ListsOutline only
9.10Garbage Collection
9.10.1Garbage Collector BasicsOutline only
9.10.2Mark&Sweep Garbage CollectorsOutline only
9.10.3Conservative Mark&Sweep for C ProgramsOutline only
9.11Common Memory-Related Bugs in C Programs
9.11.1Dereferencing Bad PointersOutline only
9.11.2Reading Uninitialized MemoryOutline only
9.11.3Allowing Stack Buffer OverflowsOutline only
9.11.4Assuming that Pointers and the Objects They Point to Are the Same SizeOutline only
9.11.5Making Off-by-One ErrorsOutline only
9.11.6Referencing a Pointer Instead of the Object It Points toOutline only
9.11.7Misunderstanding Pointer ArithmeticOutline only
9.11.8Referencing Nonexistent VariablesOutline only
9.11.9Referencing Data in Free Heap BlocksOutline only
9.11.10Introducing Memory LeaksOutline only
9.12SummaryOutline only
10System-Level I/OOutline only
CS:APP · System-Level I/O · Learning-oriented
SectionConcept / topicStudy
10.1Unix I/OOutline only
10.2Opening and Closing FilesOutline only
10.3Reading and Writing FilesOutline only
10.4Robust Reading and Writing with the Rio Package
10.4.1Rio Unbuffered Input and Output FunctionsOutline only
10.4.2Rio Buffered Input FunctionsOutline only
10.5Reading File MetadataOutline only
10.6Sharing FilesOutline only
10.7I/O RedirectionOutline only
10.8Standard I/OOutline only
10.9Putting It Together: Which I/O Functions Should I Use?Outline only
10.10SummaryOutline only
11Network ProgrammingOutline only
CS:APP · Network Programming · Learning-oriented
SectionConcept / topicStudy
11.1The Client-Server Programming ModelOutline only
11.2NetworksOutline only
11.3The Global IP Internet
11.3.1IP AddressesOutline only
11.3.2Internet Domain NamesOutline only
11.3.3Internet ConnectionsOutline only
11.4The Sockets Interface
11.4.1Socket Address StructuresOutline only
11.4.2The socket FunctionOutline only
11.4.3The connect FunctionOutline only
11.4.4The open_clientfd FunctionOutline only
11.4.5The bind FunctionOutline only
11.4.6The listen FunctionOutline only
11.4.7The open_listenfd FunctionOutline only
11.4.8The accept FunctionOutline only
11.4.9Example Echo Client and ServerOutline only
11.5Web Servers
11.5.1Web BasicsOutline only
11.5.2Web ContentOutline only
11.5.3HTTP TransactionsOutline only
11.5.4Serving Dynamic ContentOutline only
11.6Putting It Together: The Tiny Web ServerOutline only
11.7SummaryOutline only
12Concurrent ProgrammingOutline only
CS:APP · Concurrent Programming · Learning-oriented
SectionConcept / topicStudy
12.1Concurrent Programming with Processes
12.1.1A Concurrent Server Based on ProcessesOutline only
12.1.2Pros and Cons of ProcessesOutline only
12.2Concurrent Programming with I/O Multiplexing
12.2.1A Concurrent Event-Driven Server Based on I/O MultiplexingOutline only
12.2.2Pros and Cons of I/O MultiplexingOutline only
12.3Concurrent Programming with Threads
12.3.1Thread Execution ModelOutline only
12.3.2Posix ThreadsOutline only
12.3.3Creating ThreadsOutline only
12.3.4Terminating ThreadsOutline only
12.3.5Reaping Terminated ThreadsOutline only
12.3.6Detaching ThreadsOutline only
12.3.7Initializing ThreadsOutline only
12.3.8A Concurrent Server Based on ThreadsOutline only
12.4Shared Variables in Threaded Programs
12.4.1Threads Memory ModelOutline only
12.4.2Mapping Variables to MemoryOutline only
12.4.3Shared VariablesOutline only
12.5Synchronizing Threads with Semaphores
12.5.1Progress GraphsOutline only
12.5.2SemaphoresOutline only
12.5.3Using Semaphores for Mutual ExclusionOutline only
12.5.4Using Semaphores to Schedule Shared ResourcesOutline only
12.5.5Putting It Together: A Concurrent Server Based on PrethreadingOutline only
12.6Using Threads for ParallelismOutline only
12.7Other Concurrency Issues
12.7.1Thread SafetyOutline only
12.7.2ReentrancyOutline only
12.7.3Using Existing Library Functions in Threaded ProgramsOutline only
12.7.4RacesOutline only
12.7.5DeadlocksOutline only
12.8SummaryOutline only
AError HandlingOutline only
CS:APP · Error Handling · Learning-oriented
SectionConcept / topicStudy
A.1Error Handling in Unix SystemsOutline only
A.2Error-Handling WrappersOutline only

Hacker’s Delight

2Basics1 section with practice
Hacker’s Delight · Basics · Learning-oriented
SectionConcept / topicStudy
2-1Manipulating Rightmost Bits
2-2Addition Combined with Logical OperationsOutline only
2-3Inequalities among Logical and Arithmetic ExpressionsOutline only
2-4Absolute Value FunctionOutline only
2-5Average of Two IntegersOutline only
2-6Sign ExtensionOutline only
2-7Shift Right Signed from UnsignedOutline only
2-8Sign FunctionOutline only
2-9Three-Valued Compare FunctionOutline only
2-10Transfer of Sign FunctionOutline only
2-11Decoding a ‘Zero Means 2**n’ FieldOutline only
2-12Comparison PredicatesOutline only
2-13Overflow DetectionOutline only
2-14Condition Code Result of Add, Subtract, and MultiplyOutline only
2-15Rotate ShiftsOutline only
2-16Double-Length Add/SubtractOutline only
2-17Double-Length ShiftsOutline only
2-18Multibyte Add, Subtract, Absolute ValueOutline only
2-19Doz, Max, MinOutline only
2-20Exchanging RegistersOutline only
2-21Alternating among Two or More ValuesOutline only
2-22A Boolean Decomposition FormulaOutline only
2-23Implementing Instructions for all 16 Binary Boolean OperationsOutline only
3Power-of-2 BoundariesOutline only
Hacker’s Delight · Power-of-2 Boundaries · Learning-oriented
SectionConcept / topicStudy
3-1Rounding Up/Down to a Multiple of a Known Power of 2Outline only
3-2Rounding Up/Down to the Next Power of 2Outline only
3-3Detecting a Power-of-2 Boundary CrossingOutline only
4Arithmetic BoundsOutline only
Hacker’s Delight · Arithmetic Bounds · Learning-oriented
SectionConcept / topicStudy
4-1Checking Bounds of IntegersOutline only
4-2Propagating Bounds through Adds and SubtractsOutline only
4-3Propagating Bounds through Logical OperationsOutline only
5Counting BitsOutline only
Hacker’s Delight · Counting Bits · Learning-oriented
SectionConcept / topicStudy
5-1Counting 1-BitsOutline only
5-2ParityOutline only
5-3Counting Leading 0sOutline only
5-4Counting Trailing 0sOutline only
6Searching WordsOutline only
Hacker’s Delight · Searching Words · Learning-oriented
SectionConcept / topicStudy
6-1Find First 0-ByteOutline only
6-2Find First String of 1-Bits of a Given LengthOutline only
6-3Find Longest String of 1-BitsOutline only
6-4Find Shortest String of 1-BitsOutline only
7Rearranging Bits and BytesOutline only
Hacker’s Delight · Rearranging Bits and Bytes · Learning-oriented
SectionConcept / topicStudy
7-1Reversing Bits and BytesOutline only
7-2Shuffling BitsOutline only
7-3Transposing a Bit MatrixOutline only
7-4Compress, or Generalized ExtractOutline only
7-5Expand, or Generalized InsertOutline only
7-6Hardware Algorithms for Compress and ExpandOutline only
7-7General Permutations, Sheep and Goats OperationOutline only
7-8Rearrangements and Index TransformationsOutline only
7-9An LRU AlgorithmOutline only
8MultiplicationOutline only
Hacker’s Delight · Multiplication · Learning-oriented
SectionConcept / topicStudy
8-1Multiword MultiplicationOutline only
8-2High-Order Half of 64-Bit ProductOutline only
8-3High-Order Product Signed from/to UnsignedOutline only
8-4Multiplication by ConstantsOutline only
9Integer DivisionOutline only
Hacker’s Delight · Integer Division · Learning-oriented
SectionConcept / topicStudy
9-1PreliminariesOutline only
9-2Multiword DivisionOutline only
9-3Unsigned Short Division from Signed DivisionOutline only
9-4Unsigned Long DivisionOutline only
9-5Doubleword Division from Long DivisionOutline only
10Integer Division by ConstantsOutline only
Hacker’s Delight · Integer Division by Constants · Learning-oriented
SectionConcept / topicStudy
10-1Signed Division by a Known Power of 2Outline only
10-2Signed Remainder from Division by a Known Power of 2Outline only
10-3Signed Division and Remainder by Non-Powers of 2Outline only
10-4Signed Division by Divisors ≥ 2Outline only
10-5Signed Division by Divisors ≤ −2Outline only
10-6Incorporation into a CompilerOutline only
10-7Miscellaneous TopicsOutline only
10-8Unsigned DivisionOutline only
10-9Unsigned Division by Divisors ≥ 1Outline only
10-10Incorporation into a Compiler (Unsigned)Outline only
10-11Miscellaneous Topics (Unsigned)Outline only
10-12Applicability to Modulus and Floor DivisionOutline only
10-13Similar MethodsOutline only
10-14Sample Magic NumbersOutline only
10-15Simple Code in PythonOutline only
10-16Exact Division by ConstantsOutline only
10-17Test for Zero Remainder after Division by a ConstantOutline only
10-18Methods Not Using Multiply HighOutline only
10-19Remainder by Summing DigitsOutline only
10-20Remainder by Multiplication and Shifting RightOutline only
10-21Converting to Exact DivisionOutline only
10-22A Timing TestOutline only
10-23A Circuit for Dividing by 3Outline only
11Some Elementary FunctionsOutline only
Hacker’s Delight · Some Elementary Functions · Learning-oriented
SectionConcept / topicStudy
11-1Integer Square RootOutline only
11-2Integer Cube RootOutline only
11-3Integer ExponentiationOutline only
11-4Integer LogarithmOutline only
12Unusual Bases for Number SystemsOutline only
Hacker’s Delight · Unusual Bases for Number Systems · Learning-oriented
SectionConcept / topicStudy
12-1Base −2Outline only
12-2Base −1 + iOutline only
12-3Other BasesOutline only
12-4What Is the Most Efficient Base?Outline only
13Gray CodeOutline only
Hacker’s Delight · Gray Code · Learning-oriented
SectionConcept / topicStudy
13-1Gray CodeOutline only
13-2Incrementing a Gray-Coded IntegerOutline only
13-3Negabinary Gray CodeOutline only
13-4Brief History and ApplicationsOutline only
14Cyclic Redundancy CheckOutline only
Hacker’s Delight · Cyclic Redundancy Check · Learning-oriented
SectionConcept / topicStudy
14-1IntroductionOutline only
14-2TheoryOutline only
14-3PracticeOutline only
15Error-Correcting CodesOutline only
Hacker’s Delight · Error-Correcting Codes · Learning-oriented
SectionConcept / topicStudy
15-1IntroductionOutline only
15-2The Hamming CodeOutline only
15-3Software for SEC-DED on 32 Information BitsOutline only
15-4Error Correction Considered More GenerallyOutline only
16Hilbert’s CurveOutline only
Hacker’s Delight · Hilbert’s Curve · Learning-oriented
SectionConcept / topicStudy
16-1A Recursive Algorithm for Generating the Hilbert CurveOutline only
16-2Coordinates from Distance along the Hilbert CurveOutline only
16-3Distance from Coordinates on the Hilbert CurveOutline only
16-4Incrementing the Coordinates on the Hilbert CurveOutline only
16-5Non-Recursive Generating AlgorithmsOutline only
16-6Other Space-Filling CurvesOutline only
16-7ApplicationsOutline only
17Floating-PointOutline only
Hacker’s Delight · Floating-Point · Learning-oriented
SectionConcept / topicStudy
17-1IEEE FormatOutline only
17-2Floating-Point To/From Integer ConversionsOutline only
17-3Comparing Floating-Point Numbers Using Integer OperationsOutline only
17-4An Approximate Reciprocal Square Root RoutineOutline only
17-5The Distribution of Leading DigitsOutline only
17-6Table of Miscellaneous ValuesOutline only
18Formulas for PrimesOutline only
Hacker’s Delight · Formulas for Primes · Learning-oriented
SectionConcept / topicStudy
18-1IntroductionOutline only
18-2Willans’s FormulasOutline only
18-3Wormell’s FormulaOutline only
18-4Formulas for Other Difficult FunctionsOutline only
AArithmetic Tables for a 4-Bit MachineOutline only

Outline only

BNewton’s MethodOutline only

Outline only

CA Gallery of Graphs of Discrete FunctionsOutline only
Hacker’s Delight · A Gallery of Graphs of Discrete Functions · Learning-oriented
SectionConcept / topicStudy
C-1Plots of Logical Operations on IntegersOutline only
C-2Plots of Addition, Subtraction, and MultiplicationOutline only
C-3Plots of Functions Involving DivisionOutline only
C-4Plots of the Compress, SAG, and Rotate Left FunctionsOutline only
C-52D Plots of Some Unary FunctionsOutline only
coffee-bytes / Systems LearningCS:APP + Hacker’s Delight