Unix Technical Forum

Re: inline considered harmful.

This is a discussion on Re: inline considered harmful. within the mailing.openbsd.tech forums, part of the OpenBSD category; --> On Wed, Jul 21, 2004 at 01:00:51PM +0200, Jesper Louis Andersen wrote: > Some compilers treat the inline keyword ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 07:11 AM
Marc Espie
 
Posts: n/a
Default Re: inline considered harmful.

On Wed, Jul 21, 2004 at 01:00:51PM +0200, Jesper Louis Andersen wrote:
> Some compilers treat the inline keyword as a force. They will, how
> bad it might be, inline a function named as such. Other compilers
> totally ignore the inline keyword. And others again will let the
> inline keyword affect their decision heuristic.


There's some general misunderstanding about what inline means.
If you look at the discussions on the gcc mailing-lists about inline,
and specifically static inline/extern inline and stuff like that, you'll
see that even a guy named Linus Torvalds got it completely wrong...

inline has always been a hint to the compiler, and nothing more.

The only annoying issue with gcc and inline semantics is that some
asm constructs require inline to work right...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:27 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com