Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Use register arguments
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Quitch
Apprentice
Apprentice


Joined: 04 Jun 2003
Posts: 151

PostPosted: Thu Jun 10, 2004 10:22 am    Post subject: Use register arguments Reply with quote

What's this exactly? I can't seem to find any information on it.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Thu Jun 10, 2004 10:30 am    Post subject: Reply with quote

It basically causes kernel functions to use a different, more efficient, calling convention than the standard C one - internally, and when interacting with modules. While that may look like a Good Thing (and in theory it is), it causes binary only modules (such as the NVidia or ATi drivers) to malfunction badly. Only turn this on if you're sure you won't use binary only modules.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
Quitch
Apprentice
Apprentice


Joined: 04 Jun 2003
Posts: 151

PostPosted: Thu Jun 10, 2004 10:45 am    Post subject: Reply with quote

I take it it causes them problems regardless of whether they're loaded into the kernel before or after this option?
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Thu Jun 10, 2004 10:57 am    Post subject: Reply with quote

It causes problems because if you use this option, you have to compile *all* modules with this option - and the manufacturers / driver suppliers rarely if ever provide modules compiled with -mregparm=3.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Fri Dec 17, 2004 10:09 am    Post subject: Reply with quote

Will it improve performance (especially on a router / firewall server)?
Back to top
View user's profile Send private message
Leffe
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2004
Posts: 145
Location: Sweden

PostPosted: Fri Dec 17, 2004 11:23 am    Post subject: Reply with quote

schachti wrote:
Will it improve performance (especially on a router / firewall server)?


Probably, go benchmark with different values for -mregparm=x (max is 3) and without it. It's possible that this option is only supported on x86, GCC should warn though.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum