frida_cmodule_compile
JIT-compile C source inside a target process to execute high-performance hooks or callbacks in C instead of JavaScript.
Instructions
Compile inline C code and load it into a target process via CModule.
JIT-compiles C source inside the target process. Useful for writing high-performance hooks or callbacks in C instead of JS.
target: process name or pid (string).
c_code: C source code to compile.
symbols: optional dict mapping symbol names to hex addresses for
linking (e.g. {"my_func": "0x100004000"}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| c_code | Yes | ||
| symbols | No | ||
| toolchain | No |