1
/* Note: this file has been automatically generated.
2
DO NOT EDIT, or your changes WILL BE LOST! */
4
/* $Id: bench-libc.dox,v 1.2.2.1 2008/02/24 01:27:22 dmix Exp $ */
8
\section bench_libc A few of libc functions.
10
Avr-gcc version is 4.2.3
12
The size of function is given in view of all picked up functions. By default
13
Avr-libc is compiled with \c -mcall-prologues option. In brackets the size
14
without taking into account modules of a prologue and an epilogue is
15
resulted. Both of the size can coincide, if function does not cause a
21
<td width="50%"><strong>Function</strong></td>
22
<td width="20%"><strong>Units</strong></td>
23
<td width="10%"><strong>Avr2</strong></td>
24
<td width="10%"><strong>Avr25</strong></td>
25
<td width="10%"><strong>Avr4</strong></td>
28
<td> atoi ("12345")</td>
29
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
30
<td>82 (82)<br>2<br>155</td>
31
<td>78 (78)<br><br></td>
32
<td>74 (74)<br>2<br>149</td>
35
<td> atol ("12345")</td>
36
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
37
<td>122 (122)<br>2<br>221</td>
38
<td>118 (118)<br><br></td>
39
<td>118 (118)<br>2<br>219</td>
42
<td> dtostre (1.2345, s, 6, 0)</td>
43
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
44
<td>1184 (1072)<br>17<br>1313</td>
45
<td>1088 (978)<br><br></td>
46
<td>1088 (978)<br>17<br>1152</td>
49
<td> dtostrf (1.2345, 15, 6, s)</td>
50
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
51
<td>1676 (1564)<br>36<br>1608</td>
52
<td>1548 (1438)<br><br></td>
53
<td>1548 (1438)<br>36<br>1443</td>
56
<td> itoa (12345, s, 10)</td>
57
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
58
<td>150 (150)<br>4<br>1172</td>
59
<td>134 (134)<br><br></td>
60
<td>134 (134)<br>4<br>1152</td>
63
<td> ltoa (12345L, s, 10)</td>
64
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
65
<td>220 (220)<br>9<br>3174</td>
66
<td>200 (200)<br><br></td>
67
<td>200 (200)<br>9<br>3136</td>
71
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
72
<td>554 (554)<br>4<br>196</td>
73
<td>506 (506)<br><br></td>
74
<td>506 (506)<br>4<br>178</td>
77
<td> realloc ((void *)0, 1)</td>
78
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
79
<td>1152 (1040)<br>20<br>303</td>
80
<td>1042 (932)<br><br></td>
81
<td>1042 (932)<br>20<br>280</td>
84
<td> qsort (s, sizeof(s), 1, cmp)</td>
85
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
86
<td>1242 (1130)<br>38<br>20914</td>
87
<td>990 (880)<br><br></td>
88
<td>1008 (898)<br>38<br>16678</td>
91
<td> sprintf_min (s, "%d", 12345)</td>
92
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
93
<td>1216 (1104)<br>59<br>1846</td>
94
<td>1090 (980)<br><br></td>
95
<td>1086 (976)<br>59<br>1711</td>
98
<td> sprintf (s, "%d", 12345)</td>
99
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
100
<td>1674 (1562)<br>58<br>1610</td>
101
<td>1542 (1432)<br><br></td>
102
<td>1498 (1388)<br>58<br>1528</td>
105
<td> sprintf_flt (s, "%e", 1.2345)</td>
106
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
107
<td>3334 (3222)<br>66<br>2513</td>
108
<td>3084 (2974)<br><br></td>
109
<td>3040 (2930)<br>66<br>2297</td>
112
<td> sscanf_min ("12345", "%d", &i)</td>
113
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
114
<td>1540 (1428)<br>55<br>1339</td>
115
<td>1354 (1244)<br><br></td>
116
<td>1354 (1244)<br>55<br>1240</td>
119
<td> sscanf ("12345", "%d", &i)</td>
120
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
121
<td>1950 (1838)<br>53<br>1334</td>
122
<td>1704 (1594)<br><br></td>
123
<td>1704 (1594)<br>53<br>1235</td>
126
<td> sscanf ("point,color", "%[a-z]", s)</td>
127
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
128
<td>1950 (1838)<br>87<br>2878</td>
129
<td>1704 (1594)<br><br></td>
130
<td>1704 (1594)<br>87<br>2718</td>
133
<td> sscanf_flt ("1.2345", "%e", &x)</td>
134
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
135
<td>3298 (3186)<br>63<br>2187</td>
136
<td>2934 (2824)<br><br></td>
137
<td>2918 (2808)<br>63<br>1833</td>
140
<td> strtod ("1.2345", &p)</td>
141
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
142
<td>1570 (1458)<br>22<br>1237</td>
143
<td>1472 (1362)<br><br></td>
144
<td>1456 (1346)<br>22<br>971</td>
147
<td> strtol ("12345", &p, 0)</td>
148
<td>Flash bytes<br>Stack bytes<br>MCU clocks</td>
149
<td>942 (830)<br>29<br>1074</td>
150
<td>874 (764)<br><br></td>
151
<td>808 (698)<br>21<br>722</td>