lkml.org 
[lkml]   [1998]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject-mregparm=3
What about to compile the kernel with -mregparm=3? On linux-c-programming
we made some tests and seems that using regparm(3) in the most of
functions of bzip2 improve bzip2 of 6%.

http://www.ee.oulu.fi/~tuukkat/regpass-test.tar.gz

Using registers to pass parameters can' t be less efficient but _could_ be
not very more efficient.

Remeber that i386 convention of passing parameter using the stack came
only from the past.

The nasty thing is that all asm-i386 section uses "m" for reference
function arguments in the inline asm...

I just tried to compile the kernel with -regparm=1 (=3 cause gcc to not
compile since some inline function should be changed, gcc has not memory
space to save info) and the kernel crash in bread (when read the msdos
partition table, in buffer_locked(), probably due the inline asm in
test_bit() or similar).

Andrea[s] Arcangeli



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.045 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site