code-review-asm-xtensa

Featured

Review Xtensa assembly code for ESP32 platforms. Checks for critical errors in inline assembly, ABI compliance, and optimization opportunities. Use after modifying ESP32 assembly or inline asm code.

Code & Development 7,539 stars 1771 forks Updated today MIT

Install

View on GitHub

Quality Score: 97/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
44
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

Perform comprehensive manual review of Xtensa assembly code in FastLED ESP32 platforms for correctness, ABI compliance, safety, and performance. ## What Gets Checked ### Critical Errors (Must Fix) - **E001**: Invalid `movi` for 32-bit addresses - **E002**: Wrong return instruction in interrupts - **E003**: Missing `memw` memory barriers for MMIO writes - **E004**: Windowed ABI used in interrupt handlers - **E005**: Unaligned memory access - **E006**: Missing `IRAM_ATTR` on interrupt handlers - **E007**: Mixed ABI usage in same function ### Performance Warnings - **W001-W005**: Load-use hazards, loop overhead, nesting depth, register pressure, dependency chains ### Optimization Opportunities - **O001-O004**: Array indexing, conditional moves, loop unrolling, code density Search for Xtensa assembly code in git changes (inline asm and .S files) and perform deep analysis.

Details

Author
FastLED
Repository
FastLED/FastLED
Created
13 years ago
Last Updated
today
Language
C++
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

assembly-programming

Assembly programming and low-level debugging skill for reading, writing, explaining, optimizing, and reviewing assembly across x86, x86-64, ARM, AArch64, RISC-V, calling conventions, ABI boundaries, inline assembly, disassembly, stack frames, registers, and binary-level behavior. Use for .s/.asm files, compiler output, reverse-engineering snippets, low-level performance, and crash analysis.

43 Updated 1 months ago
Garyson26
Code & Development Listed

esp32-expert

This skill should be used when the user is writing, reviewing, debugging, or architecting C++ firmware for ESP32 and variants (ESP32-S2, S3, C3, C5, C6, H2, P4) using ESP-IDF or PlatformIO. Provides expert critique covering FreeRTOS task design, memory management (IRAM/DRAM/PSRAM), peripheral drivers (I2C/SPI/UART/GPIO), build systems (CMake/platformio.ini), power management, OTA updates, and embedded C++ best practices. Use when the user asks "review my ESP32 code", "fix FreeRTOS crash", "optimize memory usage", "debug I2C issue", "set up PlatformIO project", "review my CMakeLists", "search datasheet for this chip", "why is my task crashing", "configure deep sleep", or "help with ESP-IDF component structure".

11 Updated 2 weeks ago
johnkozaris
Code & Development Listed

esp32-expert

This skill should be used when the user is writing, reviewing, debugging, or architecting C++ firmware for ESP32 and variants (ESP32-S2, S3, C3, C6, H2, P4) using ESP-IDF or PlatformIO. Provides expert critique covering FreeRTOS task design, memory management (IRAM/DRAM/PSRAM), peripheral drivers (I2C/SPI/UART/GPIO), build systems (CMake/platformio.ini), power management, OTA updates, and embedded C++ best practices. Use when the user asks "review my ESP32 code", "fix FreeRTOS crash", "optimize memory usage", "debug I2C issue", "set up PlatformIO project", "review my CMakeLists", "search datasheet for this chip", "why is my task crashing", "configure deep sleep", or "help with ESP-IDF component structure".

3 Updated 1 months ago
mathisk2095