首页 > 欧亿·体育(中国)有限公司专栏 > HRM > 人力资源 > 面试甄选 > Efficient_C_Code_for_Eight-Bit_MCUs-正常面试真题DOC

Efficient_C_Code_for_Eight-Bit_MCUs-正常面试真题DOC

深源机械
V 实名认证
内容提供者
热门搜索
真题 Code 面试真题
欧亿·体育(中国)有限公司大小:20KB(压缩后)
文档格式:DOC(22页)
欧亿·体育(中国)有限公司语言:中文版/英文版/日文版
解压密码:m448
更新时间:2024/9/14(发布于福建)

类型:金牌欧亿·体育(中国)有限公司
积分:--
推荐:升级会员

   点此下载 ==>> 点击下载文档


“Efficient_C_Code_for_Eight-Bit_MCUs-正常面试真题DOC”第1页图片 图片预览结束,如需查阅完整内容,请下载文档!
文本描述
Efficient C Code for Eight-Bit MCUs
The 8051, 68HC11, and PIC are popular MCUs, but they aren’t necessarily easy to program. This article shows how the use of ANSI and compiler-specific constructs can help generate tighter code.
Getting the best possible performance out of an eight-bit microcontroller C compiler isn’t always easy. This article concentrates mainly on those microcontrollers that were never designed to support high-level languages, such as the 8051 family, the 6800 family (including the 68HCll), and the PIC line of microcontrollers. Newer eight-bit machines such as the Philips 8051XA and the Atmel Atmega series were designed explicitly to support HLLs, and as such, may not need all the techniques I describe here.
My emphasis is not on algorithm design, nor does it depend on a specific microprocessor or compiler. Rather, I describe general techniques that are widely applicable. In many cases, these techniques work on larger machines, although you may decide that the trade-offs involved aren’t worthwhile.
Before jumping into the meat of the article, let’s briefly digress with a discussion of the philosophy involved. The microcontrollers I mentioned are popular for reasons of size, price, power consumption, peripheral mix, and so on. Notice that “ease of programming

版权所有: 欧亿·体育(中国)有限公司©2025 客服电话: 0411-88895936 18842816135

欧亿·体育(中国)有限公司