Skip to content

How-to Guides

How-to guides are problem-oriented recipes. Each guide walks through solving a specific task with flatline, assuming you have already completed the Getting Started guide.

Guides

Guide What it covers
Load from a Binary File Extracting memory_image from ELF, PE, and Mach-O files using common Python libraries.
Enumerate Languages Listing and filtering the language/compiler pairs available in your runtime data directory.
Session Management Using context managers and long-lived sessions for efficient batch decompilation.
Handle Errors Catching specific error categories, interpreting DecompileResult.error, and distinguishing user-fixable from internal errors.
Analysis Budget Tuning max_instructions to handle complex or large functions within resource bounds.