From 4c1d88daff14331b64ef1019faf3f6f1ecaff817 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 8 Sep 2007 17:34:05 +0000 Subject: top: get rid of on-stack variable buffers, use permanent one. code shrank with and without TOPMEM: top_main 828 844 +16 display_process_list 1525 1473 -52 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 16/-52) Total: -36 bytes top_main 1150 1171 +21 display_topmem_process_list 1150 1167 +17 display_process_list 1525 1473 -52 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 38/-52) Total: -14 bytes --- include/platform.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/platform.h') diff --git a/include/platform.h b/include/platform.h index ff23ca18c..39809450e 100644 --- a/include/platform.h +++ b/include/platform.h @@ -54,6 +54,7 @@ # define ATTRIBUTE_ALIGNED(m) __attribute__ ((__aligned__(m))) # if __GNUC_PREREQ (3,0) # define ALWAYS_INLINE __attribute__ ((always_inline)) inline +# define NOINLINE __attribute__((noinline)) # if !ENABLE_WERROR # define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__)) # define ATTRIBUTE_UNUSED_RESULT __attribute__ ((warn_unused_result)) -- cgit v1.2.3