We have implemented support for Padauk microcontrollers, tiny 8-Bit devices with 60 B to 256 B of RAM, in the Small Device C Compiler (SDCC), showing that the use of (mostly) standard C to program such minimal devices is feasible. We report on our experience and on the difficulties in supporting the hardware multithreading present on some of these devices. To make the devices a better target for C, we propose various enhancements of the architecture, and empirically evaluated their impact on code size.
翻译:我们在小型设备C编译器(SDCC)中实现了对Padauk微控制器的支持,这类微型8位设备仅具备60B至256B的RAM。研究表明,使用(基本)符合标准的C语言为此类极小规模设备编程是可行的。本文汇报了实际开发经验,并探讨了在支持部分设备硬件多线程功能时遇到的技术难题。为使此类设备更适合作为C语言编译目标,我们提出了多种架构改进方案,并通过实验评估了这些改进对代码体积的影响。