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/11/21 2:35:06 阅读更多 →
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/11/21 2:35:04 阅读更多 →
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/11/17 5:40:31 阅读更多 →

最新新闻

Electron桌面应用开发实战:从环境搭建到打包发布全流程

Electron桌面应用开发实战:从环境搭建到打包发布全流程

做前端这些年,我大部分时间都在跟浏览器标签页打交道,直到第一次把桌面应用跑起来,才发现原来自己一直被限制在地址栏和刷新按钮围起来的框框里。Electron这个词,最开始是在某段时间频繁出现在同事的讨论里,一个用HTML…

2026/11/20 23:27:28 阅读更多 →
滑盖智能锁T109深度解析:结构原理、安装调试与故障排查

滑盖智能锁T109深度解析:结构原理、安装调试与故障排查

简介:亚太天能T109滑盖智能锁产品说明书是一份PDF格式的官方技术文档,主要面向智能锁安装人员、终端用户及售后维护者,帮助快速掌握产品安装、配置与常见故障处理。全包仅1个PDF文件,大小4.37MB,内容结构清晰&#xff…

2026/11/20 23:27:28 阅读更多 →
PMSM弱磁控制原理与Simulink建模:高速AGV驱动系统设计指南

PMSM弱磁控制原理与Simulink建模:高速AGV驱动系统设计指南

上个月我在调试一台高速AGV的驱动系统,整车要求空载跑到8m/s,电机转速已经拉到额定点,驱动器的输出电压也顶到了母线电压极限附近。再往上踩速度指令,转速纹丝不动,三相电流反而开始震荡。那会儿我的第一反应就是&…

2026/11/20 23:27:28 阅读更多 →
C++核心知识点:从内存管理到STL的实战指南

C++核心知识点:从内存管理到STL的实战指南

C 这门语言我前前后后折腾了十几年,用它写过嵌入式驱动、做过游戏服务端,也搭过基础组件库。每次看到新人一头扎进"C 核心知识点"这个搜索词,我其实挺感慨的——这门语言的难点从来不是语法多,而是知识点之间的耦合太深…

2026/11/20 21:55:32 阅读更多 →
T109滑盖智能锁怎么装?安装调试与故障排查全攻略

T109滑盖智能锁怎么装?安装调试与故障排查全攻略

简介:亚太天能T109滑盖智能锁产品说明书以PDF格式发布,适合智能锁用户、安装人员与售后维修人员阅读。内容围绕T109系列指纹密码刷卡锁展开,先介绍前面板、后面板、锁体、机械钥匙、电池盒盖等部件名称与功能,再给出完整安装步骤&…

2026/11/20 23:27:28 阅读更多 →
LLM知识降熵:从信息垄断到理解权下放

LLM知识降熵:从信息垄断到理解权下放

你有没有过这种经历:翻开源码注释、论文摘要或者一份专业报告,每个字都认识,连在一起却像天书。想找人聊聊,身边要么没人懂,要么懂的懒得跟你解释。后来我试着把同一段内容丢给一个大语言模型,几秒钟之后&a…

2026/11/20 22:59:12 阅读更多 →

日新闻

周新闻

月新闻