Write C for ARM

作者: 佚名   发布日期:2006-04-12 20:05   查看数:0   出自:互联网
下载资料简介
Table of Contents
1 Introduction 2
2 Setting Compiler Options 3
2.1 Selecting processor/architecture 3
2.2 Debugging options 3
2.3 Optimization options 4
2.4 APCS options 4
3 Division and Remainder 6
3.1 Combining division and remainder 6
3.2 Division and remainder by powers of two 7
3.3 Alternatives to remainder for modulo arithmetic 7
3.4 Division by a constant 8
3.5 Using lookup tables 8
4 Conditional Execution 9
5 Boolean Expressions 10
5.1 Range checking 10
5.2 Compares with zero 11
6 Loops 12
6.1 Loop termination 12
6.2 Loop unrolling 13
7 Switch Statement 14
7.1 Switch statement vs. lookup tables 14
8 Register Allocation 16
8.1 Register allocatable variables 16
8.2 Aliasing 16
8.3 Live variables and spilling 20
9 Variable Types 21
9.1 Local variables 21
9.2 Use of shorts/signed bytes on ARM 22
9.3 Space occupied by global data 22
10 Function Design 23
10.1 Function call overhead 23
10.2 Leaf functions 25
10.3 Tail continued functions 26
10.4 Pure functions 27
10.5 Inline functions 28
10.6 Function definitions 29
11 Using Lookup Tables 30
12 Floating-Point Arithmetic 31
13 Cross Jump Optimization 32
14 Portability of C Code 33
15 Further Information

备注:
本站收集200多G的绝对实用的电子资料,但是站长还是个身无分文的学生,没有钱购买服务器,大量的资料没有办法供大家下载。但是,站长对这些资料进行了细致的分类,给大家一个资料索引,让大家更好的收集相关领域资料。本站资料部分来自互联网,朋友们可以在互联网上搜索到这些资料。当站长把资料整理完毕(大概需要1个月)后,会想办法让这些资料跟大家见面,也许用BT供大家下载,请大家耐心等待!
相关文章(最新&最热)