projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo fixes
[oweals/busybox.git]
/
docs
/
keep_data_small.txt
diff --git
a/docs/keep_data_small.txt
b/docs/keep_data_small.txt
index f88fe07b05f2f551bf2179bc6a24655e424762d9..2ddbefa10aa3cde76a3700d9353432319953a761 100644
(file)
--- a/
docs/keep_data_small.txt
+++ b/
docs/keep_data_small.txt
@@
-43,6
+43,16
@@
takes 55k of memory on 64-bit x86 kernel.
On 32-bit kernel we need ~26k per applet.
On 32-bit kernel we need ~26k per applet.
+Script:
+
+i=1000; while test $i != 0; do
+ echo -n .
+ busybox sleep 30 &
+ i=$((i - 1))
+done
+echo
+wait
+
(Data from NOMMU arches are sought. Provide 'size busybox' output too)
(Data from NOMMU arches are sought. Provide 'size busybox' output too)
@@
-89,9
+99,9
@@
and then declare that ptr_to_globals is a pointer to it:
ptr_to_globals is declared as constant pointer.
This helps gcc understand that it won't change, resulting in noticeably
ptr_to_globals is declared as constant pointer.
This helps gcc understand that it won't change, resulting in noticeably
-smaller code. In order to assign it, use PTR_TO_GLOBALS macro:
+smaller code. In order to assign it, use
SET_
PTR_TO_GLOBALS macro:
-
PTR_TO_GLOBALS = xzalloc(sizeof(G
));
+
SET_PTR_TO_GLOBALS(xzalloc(sizeof(G)
));
Typically it is done in <applet>_main().
Typically it is done in <applet>_main().