diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-27 18:41:59 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-27 18:41:59 +0000 |
commit | 574f2f43948bb21d6e4187936ba5a5afccba25f6 (patch) | |
tree | 0b39aca564149e5ad30b3cc791228655ff1b1827 /docs/keep_data_small.txt | |
parent | fe66a0eca1bfeae0abc0fc1e7d3709f271e05e82 (diff) | |
download | busybox-w32-574f2f43948bb21d6e4187936ba5a5afccba25f6.tar.gz busybox-w32-574f2f43948bb21d6e4187936ba5a5afccba25f6.tar.bz2 busybox-w32-574f2f43948bb21d6e4187936ba5a5afccba25f6.zip |
*: add optimization barrier to all "G trick" locations
Diffstat (limited to 'docs/keep_data_small.txt')
-rw-r--r-- | docs/keep_data_small.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/keep_data_small.txt b/docs/keep_data_small.txt index 3ddbd81a4..2ddbefa10 100644 --- a/docs/keep_data_small.txt +++ b/docs/keep_data_small.txt | |||
@@ -99,9 +99,9 @@ and then declare that ptr_to_globals is a pointer to it: | |||
99 | 99 | ||
100 | ptr_to_globals is declared as constant pointer. | 100 | ptr_to_globals is declared as constant pointer. |
101 | This helps gcc understand that it won't change, resulting in noticeably | 101 | This helps gcc understand that it won't change, resulting in noticeably |
102 | smaller code. In order to assign it, use PTR_TO_GLOBALS macro: | 102 | smaller code. In order to assign it, use SET_PTR_TO_GLOBALS macro: |
103 | 103 | ||
104 | PTR_TO_GLOBALS = xzalloc(sizeof(G)); | 104 | SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); |
105 | 105 | ||
106 | Typically it is done in <applet>_main(). | 106 | Typically it is done in <applet>_main(). |
107 | 107 | ||