Article View: borland.public.cppbuilder.nativeapi
Article #15932Re: Behavior of inline
From: Rob
Date: Mon, 09 Jun 2003 00:55
Date: Mon, 09 Jun 2003 00:55
26 lines
2064 bytes
2064 bytes
"Chris" <Chris8852@adelphia.net> wrote in message news:3ee37a56$1@newsgroups.borland.com... > I don't see why in Microsoft's VC++ that they would have a forceinline then. > It seems to bypass the cost/benefit analysis period, and it says there > definitely is one, and I'm not sure how it does it. With VC++, that is not really documented anywhere. I'd guess the cost/benefit analysis comes down to a comparison of generated code size and/or ability to optimise though the inlined code. > I still don't understand the behavior of inline in BCB as compared to > Microsoft's VC++. > For example, is inline in BCB equivelant to inline in Microsoft VC++? If so, > then there is no equivelant to forceinline? > inline in BCB (as in VC++, BTW) is based on the inline keyword in ISO standard C++. In the standard, inline is a hint to the compiler that the compiler is free to ignore. That's what happens in both VC++ and BCB. forceinline (which, incidentally isn't something I've come across) is presumably a VC++ extension that is not supported by BCB, and is not required to be.
Technical Details
Message-ID:
<3ee3dbb3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ee19817$1@newsgroups.borland.com> <3ee36749@newsgroups.borland.com> <3ee37a56$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,3cf3a4bed32fbb6 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-08 18:03:38 PST From: "Rob" <nospam@nonexistant.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ee19817$1@newsgroups.borland.com> <3ee36749@newsgroups.borland.com> <3ee37a56$1@newsgroups.borland.com> Subject: Re: Behavior of inline Date: Mon, 9 Jun 2003 10:25:11 +0930 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 211.26.119.54 Message-ID: <3ee3dbb3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1055120307 211.26.119.54 (8 Jun 2003 17:58:27 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail