View previous topic :: View next topic |
Author |
Message |
Quitch Apprentice
Joined: 04 Jun 2003 Posts: 151
|
Posted: Thu Jun 10, 2004 10:22 am Post subject: Use register arguments |
|
|
What's this exactly? I can't seem to find any information on it. |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Thu Jun 10, 2004 10:30 am Post subject: |
|
|
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 |
|
|
Quitch Apprentice
Joined: 04 Jun 2003 Posts: 151
|
Posted: Thu Jun 10, 2004 10:45 am Post subject: |
|
|
I take it it causes them problems regardless of whether they're loaded into the kernel before or after this option? |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Thu Jun 10, 2004 10:57 am Post subject: |
|
|
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 |
|
|
schachti Advocate
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
Posted: Fri Dec 17, 2004 10:09 am Post subject: |
|
|
Will it improve performance (especially on a router / firewall server)? |
|
Back to top |
|
|
Leffe Tux's lil' helper
Joined: 07 Apr 2004 Posts: 145 Location: Sweden
|
Posted: Fri Dec 17, 2004 11:23 am Post subject: |
|
|
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 |
|
|
|