Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Giving a program priority briefly
- Date: Mon, 11 Jun 2007 23:46:39 +0900
- From: "Stephen J. Turnbull" <turnbull@example.com>
- Subject: Re: [tlug] Giving a program priority briefly
- References: <466B5A87.7000002@dcook.org> <78d7dd350706100221u524aa0baxa6498541674863b0@mail.gmail.com> <466BD066.90302@dcook.org> <d8fcc0800706100704h4dcf13d9h6955f03d0c09dc34@mail.gmail.com> <466C878D.10406@dcook.org> <d8fcc0800706101742j556cb54dgcd4dd32ec2f57296@mail.gmail.com>
Josh Glover writes: > Steve, I think you know a little more about C++ compilers than I do; Very little, I'd guess. I did type in Hendrix's Small C by hand, and I've got Ellis & Stroustrup, but I'm not at all up on C++ implementation. > any idea why g++ is ignoring the inline keyword to the detriment of > this program's performance? One obvious factor would be if the base class is implemented in a different .C from the derived class. Compilers are much smarter than linkers. Also if it gets moved out of the declaration: class eyes { int i; public: int gimme_an_i () { return i; } }; is more likely to get inlined than class eyes { int i; public: int gimme_an_i (); }; int eyes::gimme_an_i () { return i; } (However that last case probably gets a inline declaration in Darren's code, and then it should be equivalent.) Other than that I can't think of anything offhand. My bet is that somehow it's a "linkers are dumb" issue.
- Follow-Ups:
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
- References:
- [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Nguyen Vu Hung
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Josh Glover
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Josh Glover
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Giving a program priority briefly
- Next by Date: Re: [tlug] Giving a program priority briefly
- Previous by thread: Re: [tlug] Giving a program priority briefly
- Next by thread: Re: [tlug] Giving a program priority briefly
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links