From 574f2f43948bb21d6e4187936ba5a5afccba25f6 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 27 Feb 2008 18:41:59 +0000 Subject: *: add optimization barrier to all "G trick" locations --- docs/keep_data_small.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/keep_data_small.txt b/docs/keep_data_small.txt index 3ddbd81..2ddbefa 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: 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 _main(). -- cgit v1.1