摘要
当前,大多数高校先后开设了嵌入式系统的实验课程。学生在做嵌入式系统的实验时,经常会遇到字节顺序的大小端转化问题。为能理解大小端的概念并解决相关问题,介绍了大小端及其常用的转换方法,提出一种无需修改程序而直接将程序移植到新的平台上优化简单的方法,并设计一大小端转化实验,取得了良好的教学效果。
Nowadays, many universities set up the embedded system experiment courses. When students do these embedded experiments, they do often face the problem of the transformation between big-endian and little-endian about byte order. To help students know the concept of big-endian and little-endian and settle the problem, this paper introduced big-endian and little-endian and the usual way to solve this problem. Migrating a program to a new platform based on new CPU, an improved and simple way was proposed without amending the program, and an experiment about transforming between big-endian and little-endian was designed. Perfect teaching effect was gained.
出处
《实验室研究与探索》
CAS
2008年第5期66-67,91,共3页
Research and Exploration In Laboratory
关键词
嵌入式系统
字节顺序
大小端
转化
embedded system
byte order
big-endian and little-endian
transforming