1 | |
1 | |
2 | =head2 GCC ATTRIBUTES |
2 | =head2 GCC ATTRIBUTES |
3 | |
3 | |
4 | =over 4 |
4 | =over 4 |
5 | |
5 | |
6 | =item ecb_attribute(attrlist) |
6 | =item ecb_attribute ((attrs...)) |
7 | =item ecb_noinline ecb_attribute ((noinline)) |
|
|
8 | =item ecb_noreturn ecb_attribute ((noreturn)) |
|
|
9 | =item ecb_unused ecb_attribute ((unused)) |
|
|
10 | =item ecb_const ecb_attribute ((const)) |
|
|
11 | =item ecb_pure ecb_attribute ((pure)) |
|
|
12 | =item ecb_hot ecb_attribute ((hot)) /* 4.3 */ |
|
|
13 | =item ecb_cold ecb_attribute ((cold)) /* 4.3 */ |
|
|
14 | |
7 | |
|
|
8 | A simple wrapper that expands to C<__attribute__((attrs))> on GCC, and |
|
|
9 | to nothing on other compilers, so the effect is that only GCC sees these. |
|
|
10 | |
|
|
11 | =item ecb_noinline |
|
|
12 | |
|
|
13 | =item ecb_noreturn |
|
|
14 | |
|
|
15 | =item ecb_unused |
|
|
16 | |
|
|
17 | =item ecb_const |
|
|
18 | |
|
|
19 | =item ecb_pure |
|
|
20 | |
|
|
21 | =item ecb_hot |
|
|
22 | |
|
|
23 | =item ecb_cold |
|
|
24 | |
|
|
25 | =item ecb_artificial |
|
|
26 | |
15 | =back |
27 | =back |
16 | |
28 | |
17 | =head2 OPTIMISATION HINTS |
29 | =head2 OPTIMISATION HINTS |
18 | |
30 | |
19 | =over 4 |
31 | =over 4 |
20 | |
32 | |
… | |
… | |
30 | |
42 | |
31 | =item bool ecb_unreachable() |
43 | =item bool ecb_unreachable() |
32 | |
44 | |
33 | =item bool ecb_prefetch(addr,rw,locality) |
45 | =item bool ecb_prefetch(addr,rw,locality) |
34 | |
46 | |
35 | =back |
47 | =back |
36 | |
48 | |
37 | =head2 BIT FIDDLING / BITSTUFFS |
49 | =head2 BIT FIDDLING / BITSTUFFS |
38 | |
50 | |
39 | bool ecb_big_endian (); |
51 | bool ecb_big_endian (); |
40 | bool ecb_little_endian (); |
52 | bool ecb_little_endian (); |