![]() |
forcing compiler to consider inline function inline.
Hi all,
I want to force that compiler take the function INLINE if i declare it inline.I know there is some macro to force the compiler to take the function as inline..but unfortunately i dont know the name.Please tell if there is any other way to do so if you know. Thanks in advance. Ajay |
Re: forcing compiler to consider inline function inline.
Ajay posted:
> Hi all, > I want to force that compiler take the function INLINE if i declare it > inline.I know there is some macro to force the compiler to take the > function as inline..but unfortunately i dont know the name.Please tell > if there is any other way to do so if you know. > Thanks in advance. Ajay > > Something like: __forceinline -Tomás |
Re: forcing compiler to consider inline function inline.
Tomás wrote: > Ajay posted: > > > Hi all, > > I want to force that compiler take the function INLINE if i declare it > > inline.I know there is some macro to force the compiler to take the > > function as inline..but unfortunately i dont know the name.Please tell > > if there is any other way to do so if you know. > > Thanks in advance. Ajay > > > > > > Something like: > > __forceinline > > > -Tomás Have you used it yourself.?Are you sure.??Please reply fast.thank you. |
Re: forcing compiler to consider inline function inline.
Ajay posted:
> > Tomás wrote: >> Ajay posted: >> >> > Hi all, >> > I want to force that compiler take the function INLINE if i declare it >> > inline.I know there is some macro to force the compiler to take the >> > function as inline..but unfortunately i dont know the name.Please tell >> > if there is any other way to do so if you know. >> > Thanks in advance. Ajay >> > >> > >> >> Something like: >> >> __forceinline >> >> >> -Tomás > > > Have you used it yourself.?Are you sure.??Please reply fast.thank you. > > Never used it myself, but I vaguely remember seeing something like it in a compiler's helpbook. Note that it's a compiler extension, it's nothing to do with the C++ programming language. -Tomás |
Re: forcing compiler to consider inline function inline.
Tomás wrote: > Ajay posted: > > > > > Tomás wrote: > >> Ajay posted: > >> > >> > Hi all, > >> > I want to force that compiler take the function INLINE if i declare > it > >> > inline.I know there is some macro to force the compiler to take the > >> > function as inline..but unfortunately i dont know the name.Please > tell > >> > if there is any other way to do so if you know. > >> > Thanks in advance. Ajay > >> > > >> > > >> > >> Something like: > >> > >> __forceinline > >> > >> > >> -Tomás > > > > > > Have you used it yourself.?Are you sure.??Please reply fast.thank you. > > > > > > Never used it myself, but I vaguely remember seeing something like it in > a compiler's helpbook. > > Note that it's a compiler extension, it's nothing to do with the C++ > programming language. Indeed there is _no_ way to do it in standard C++ so, to the OP: you will need to look in your compiler documentation or ask a group dedicated to your compiler because the answer, if there is one, is likely to be different depending on what compiler you are using. Gavin Deane |
Re: forcing compiler to consider inline function inline.
Ajay wrote:
> Hi all, > I want to force that compiler take the function INLINE if i declare it > inline.I know there is some macro to force the compiler to take the > function as inline..but unfortunately i dont know the name.Please tell > if there is any other way to do so if you know. > Thanks in advance. Ajay > The C++ language definition says that inline is a hint to the compiler (as to inlining itself; it also has some semantic consequences). Anything else is compiler-specific, and is best discussed in a compiler-specific newsgroup. -- Pete Becker Roundhouse Consulting, Ltd. |
| All times are GMT. The time now is 01:17 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.