STC32G12K128开源编译器:SDCC
【SDCC开源编译器】基本背景SDCC简介SDCC is a retargettable, optimizing Standard C (ANSI C89, ISO C99, ISO C11, ISO C23) compiler suite that targets the Intel MCS51 based microprocessors (8031, 8032, 8051, 8052, etc.), Maxim (formerly Dallas) DS80C390 variants, Freescale (formerly Motorola) HC08 based (hc08, s08), Zilog Z80 based MCUs (Z80, Z80N, Z180, SM83, Rabbit 2000, 2000A, 3000A, 4000, SM83, TLCS-90, eZ80, R800), Padauk (pdk14, pdk15), STMicroelectronics STM8, MOS 6502 and WDC 65C02. Work is in progress on supporting the Rabbit 5000, 6000, Padauk pdk13 and the f8 and f8l targets; Microchip PIC16 and PIC18 targets are unmaintained. SDCC can be retargeted for other microprocessors.SDCC suite is a collection of several components derived from different sources with different FOSS licenses. SDCC compiler suite include:sdas and sdld, a retargettable assembler and linker, based on ASXXXX, written by Alan Baldwin; (GPL).sdcpp preprocessor, based on GCC cpp; (GPL).ucsim simulators, originally written by Daniel Drotos; (GPL).sdcdb source level debugger, originally written by Sandeep Dutta; (GPL).sdbinutils library archive utilities, including sdar, sdranlib and sdnm, derived from GNU Binutils; (GPL)SDCC run-time libraries; (GPLLE). Pic device libraries and header files are derived from Microchip header (.inc) and linker script (.lkr) files. Microchip requires that “The header files should state that they are only to be used with authentic Microchip devices” which would make them incompatible with the GPL.gcc-test regression tests, derived from gcc-testsuite; (no license explicitely specified, but since it is a part of GCC is probably GPL licensed)packihx; (public domain)makebin; (zlib/libpng License)sdcc C compiler, originally written by Sandeep Dutta; (GPL). Some of the features include:extensive MCU specific language extensions, allowing effective use of the underlying hardware.a host of standard optimizations such as global subexpression elimination, loop optimizations (loop invariant, strength reduction of induction variables and loop reversing), constant folding and propagation, copy propagation, dead code elimination and jump tables for ‘switch’ statements.MCU specific optimizations, including a global register allocator.adaptable MCU specific backend that should be well suited for other 8 bit MCUsindependent rule based peep hole optimizer.a full range of data types: char (8 bits, 1 byte), short (16 bits, 2 bytes), int (16 bits, 2 bytes), long (32 bit, 4 bytes), long long (64 bit, 8 bytes), float (4 byte IEEE), _Bool/bool and _BitInt.the ability to add inline assembler code anywhere in a function.the ability to report on the complexity of a function to help decide what should be re-written in assembler.a good selection of automated regression tests.对应连接https://sdcc.sourceforge.net/STC32G12K128 开源编译器最优起步路线先明确硬件核心STC32G 是 80251C251扩展架构不是传统 8 位 MCS51只有 SDCC 是目前唯一成熟、可用的开源编译器没有原生 GCC/LLVM C251 后端。首选起步SDCCSmall Device C Compiler【唯一可行】为什么从 SDCC 出发唯一标准答案STC官方 提供 RMB5万的辛苦费下载信息SDCC 使用手册SDCC 下载连接

相关新闻

Nortix Mail数据迁移指南:只需复制data文件夹的简单备份方案

Nortix Mail数据迁移指南:只需复制data文件夹的简单备份方案

Nortix Mail数据迁移指南:只需复制data文件夹的简单备份方案 【免费下载链接】NortixMail Nortix Mail - disposable email server with an easy setup 项目地址: https://gitcode.com/gh_mirrors/no/NortixMail Nortix Mail作为一款轻量级的临时邮件服务器&…

2026/9/21 3:07:18 阅读更多 →
flink-on-k8s-operator部署指南:从Helm Chart到生产环境的最佳实践

flink-on-k8s-operator部署指南:从Helm Chart到生产环境的最佳实践

flink-on-k8s-operator部署指南:从Helm Chart到生产环境的最佳实践 【免费下载链接】flink-on-k8s-operator [DEPRECATED] Kubernetes operator for managing the lifecycle of Apache Flink and Beam applications. 项目地址: https://gitcode.com/gh_mirrors/fl…

2026/9/21 1:49:10 阅读更多 →
gh_mirrors/gr/grpc-tutorial监控与日志:打造可观测的gRPC服务

gh_mirrors/gr/grpc-tutorial监控与日志:打造可观测的gRPC服务

gh_mirrors/gr/grpc-tutorial监控与日志:打造可观测的gRPC服务 【免费下载链接】grpc-tutorial gRPC tutorial for Japanese readers 项目地址: https://gitcode.com/gh_mirrors/gr/grpc-tutorial gh_mirrors/gr/grpc-tutorial是一个面向日语读者的gRPC教程项…

2026/9/16 12:26:34 阅读更多 →

最新新闻

Ollama+DeepSeek+Dify本地化部署:打造私有AI工作站实战指南

Ollama+DeepSeek+Dify本地化部署:打造私有AI工作站实战指南

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/9/21 3:07:42 阅读更多 →
研发质量控制步骤详解:从需求评审到发布复盘的全流程实践

研发质量控制步骤详解:从需求评审到发布复盘的全流程实践

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/9/21 3:07:42 阅读更多 →
餐饮管理集团制度汇编实操:从框架设计到落地执行全拆解

餐饮管理集团制度汇编实操:从框架设计到落地执行全拆解

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/9/21 3:07:42 阅读更多 →
R语言镜像源配置全指南:清华/阿里云加速安装

R语言镜像源配置全指南:清华/阿里云加速安装

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/9/21 3:07:42 阅读更多 →
GATB能力倾向测验指南:从9大因子到职业匹配的完整解读

GATB能力倾向测验指南:从9大因子到职业匹配的完整解读

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/9/21 3:07:42 阅读更多 →
从零开始学Linux WiFi驱动:mac80211、PCIe与固件加载实战解析

从零开始学Linux WiFi驱动:mac80211、PCIe与固件加载实战解析

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/9/21 3:06:42 阅读更多 →

日新闻

agents-generator 决策矩阵全解析:从项目检测到 AGENTS.md 规则生成的 16 步判定流程

agents-generator 决策矩阵全解析:从项目检测到 AGENTS.md 规则生成的 16 步判定流程

agents-generator 决策矩阵全解析:从项目检测到 AGENTS.md 规则生成的 16 步判定流程 【免费下载链接】agentic-awesome-skills AAS Core is the local, agent-first control plane for complete catalog discovery, agent-owned selection, stack validation, and …

2026/9/21 0:00:01 阅读更多 →
gin-vue-admin 前端工具函数全景指南:src/utils 复用规范与源码级解析

gin-vue-admin 前端工具函数全景指南:src/utils 复用规范与源码级解析

gin-vue-admin 前端工具函数全景指南:src/utils 复用规范与源码级解析 【免费下载链接】gin-vue-admin 🚀ViteVue3Gin拥有AI辅助的基础开发平台,企业级业务AI开发解决方案,内置mcp辅助服务,内置skills管理,…

2026/9/21 0:00:01 阅读更多 →
Wox 全功能插件开发实战指南:基于 Python / Node.js 宿主与 WebSocket 的持久化插件体系

Wox 全功能插件开发实战指南:基于 Python / Node.js 宿主与 WebSocket 的持久化插件体系

桌面应用AI 应用插件系统 【免费下载链接】Wox A cross-platform launcher that simply works 项目地址: https://gitcode.com/gh_mirrors/wo/Wox 点击查看 免费下载 全功能插件(Full-featured Plugin)是 Wox 三类插件实现方式中能力最完整的…

2026/9/21 0:00:01 阅读更多 →

周新闻

Flutter for OpenHarmony游戏卡片渐变背景实战:从原理到性能优化

Flutter for OpenHarmony游戏卡片渐变背景实战:从原理到性能优化

直接铺开项目本身吧。这几个月我一直在折腾一件事:用Flutter给OpenHarmony做一款游戏集合类的App,说白了就是把若干小游戏塞进一个壳里,用统一入口分发。这个方向本身不算新鲜,真正让我花了不少心思的,是首页那堆游戏卡…

2026/9/20 0:00:46 阅读更多 →
Word表格编号全攻略:从列表编号到题注交叉引用

Word表格编号全攻略:从列表编号到题注交叉引用

写Word文档,最让人头疼的往往是那些“看起来不起眼”的小问题。比如表格编号这事:今天在表后面多加了两个空白行,明天给客户交稿前发现整个章节的编号全部错位,光是挨个改序号就能耗掉大半个下午。我前阵子帮人整理一份上百页的技…

2026/9/21 2:19:36 阅读更多 →
从第一个站到第二个站:独立开发者的静态网站选型与落地实践

从第一个站到第二个站:独立开发者的静态网站选型与落地实践

1. 项目概述1.1 核心需求解析做独立开发者这几年,说实话,第一个网站上线的那天晚上我兴奋得没睡着。但等它跑了半年,流量惨淡、功能臃肿、代码自己都懒得看第二遍之后,我才慢慢琢磨明白一个道理:第一个网站是练手&…

2026/9/20 0:00:46 阅读更多 →

月新闻

持续集成 流水线自动化与 声明式交付 实践:原型怎样变成可用功能

持续集成 流水线自动化与 声明式交付 实践:原型怎样变成可用功能

持续集成 流水线自动化与 声明式交付 实践:原型怎样变成可用功能分类:[AI/大模型]细分主题:AI 增强型 CI/CD 流水线自动化与 GitOps 实践:Agent 工作流、工具调用与任务拆解:从原型到生产的验收清单很多团队在尝试用大…

2026/9/19 23:01:36 阅读更多 →
容器编排 生产环境运维与排障实战:复盘记录怎样真正派上用场

容器编排 生产环境运维与排障实战:复盘记录怎样真正派上用场

容器编排 生产环境运维与排障实战:复盘记录怎样真正派上用场分类:[工程技术]细分主题:Kubernetes 生产环境运维与排障实战:可复制的项目复盘模板与决策记录大部分团队的事故复盘报告,最后都变成了躺在 Confluence 或钉…

2026/9/19 17:50:38 阅读更多 →
容器 容器化技术与镜像安全管理:核心链路应该先拆哪一步

容器 容器化技术与镜像安全管理:核心链路应该先拆哪一步

容器 容器化技术与镜像安全管理:核心链路应该先拆哪一步分类:[工程技术]细分主题:Docker 容器化技术与镜像安全管理:核心链路的逐步实现与关键代码取舍面对一个积累了五六年历史包袱的单体架构应用(包含 Web 接口、后台…

2026/9/19 23:35:34 阅读更多 →