linux for an old system

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Everytime I see inline functions mentioned in regards to gcc, well, they aren't good comments

The Linux kernel uses inline functions in a lot of performance critical spots and they work fine. No doubt there are bugs in certain versions of gcc, but AFAIK inline functions work well.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Nothinman
Everytime I see inline functions mentioned in regards to gcc, well, they aren't good comments

The Linux kernel uses inline functions in a lot of performance critical spots and they work fine. No doubt there are bugs in certain versions of gcc, but AFAIK inline functions work well.

I'll have to double check that I guess. Maybe it's a 2.95 thing...
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
That has nothing to do with real bugs, just potential performance issues. Perhaps the performance gains from inlining code matter more when SMP granularity is higher, lord knows the OpenBSD people have just started making their kernel SMP capable.