C programming tips in SPARC architecture
来源:互联网 发布:大数据相关的书 编辑:程序博客网 时间:2024/06/06 05:49
If you are a newbie of C programmers in SPARC architecture (For example, working on Solaris), you should pay attention to the following tips:
(1) By default, SPARC is big-endian (For Endianness, you can refer http://en.wikipedia.org/wiki/Endianness). It means for an integer (short, int, long, etc), the MSB will be stored in the lower address, while the LSB will be stored in the higher address.
(2) SPARC requires byte-alignment. It means for a short (2 bytes long) variable, the start address of the variable must be the multiples of 2, while a int (4 bytes long) variable, the start address of the variable must be the multiples of 4. If the address can't satisfy this condition, the application will core dump, and a "Bus Error" will be reported. For this tip, you can refer Expert C Programming: Deep C Secrets (Bus Error section, page 163 ~ page 164).
For more SPARC information, you can refer:
http://en.wikipedia.org/wiki/SPARC;
SPARC Processor Issues.
- C programming tips in SPARC architecture
- Tips in programming Laszlo
- C Programming Tips
- Solaris SPARC Boot Architecture
- Socket programming tips in Solaris
- Tips of Linux C programming
- Tips of Linux C programming
- Tips of Programming in Google App Engine
- Programming experience in C
- Substring in c programming
- Practical Programming in C
- Programming SQLite3 in C
- Programming Tips
- Programming tips
- Simple Plug-in Architecture in Plain C
- Some Tips In Object C
- Some Tips In Object C
- Some Tips In Object C
- sql server日期时间转字符串
- 实例讲解OSGI开发
- 黑马程序员—抽象类
- 文件上传 silverlight
- [c.y.j]js 鼠标移动事件
- C programming tips in SPARC architecture
- SharedPreferences跨应用读取数据
- 在UITextView里实现类似超链接功能
- 为Win8用户保驾护航,IE10增强的内存保护详解
- Parlay/Parlay X
- 网络管理实验1——MIB Walk的运行和代码分析
- Linux性能监测
- Lucene教程详解
- Java中为什么要用抽象类来实现接口