<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>MISRA-C on 技术笔记</title><link>https://deguiliu.github.io/tech-notes/tags/misra-c/</link><description>Recent content in MISRA-C on 技术笔记</description><generator>Hugo -- 0.157.0</generator><language>zh-cn</language><lastBuildDate>Mon, 16 Feb 2026 08:30:00 +0000</lastBuildDate><atom:link href="https://deguiliu.github.io/tech-notes/tags/misra-c/index.xml" rel="self" type="application/rss+xml"/><item><title>C 语言层次状态机框架: 从过程驱动到数据驱动的重构实践</title><link>https://deguiliu.github.io/tech-notes/posts/pattern/c_hsm_data_driven_framework/</link><pubDate>Mon, 16 Feb 2026 08:30:00 +0000</pubDate><guid>https://deguiliu.github.io/tech-notes/posts/pattern/c_hsm_data_driven_framework/</guid><description>以 state_machine 框架的重构为案例，展示如何将一个过程驱动的 C 语言状态机改造为数据驱动的层次状态机 (HSM)。涵盖转换表替代 switch-case、LCA 算法消除递归、用户缓冲区替代内部分配、守卫条件与内外转换区分等关键改造点，附完整数据结构和 API 设计。</description></item></channel></rss>