🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #148

Re: how to check easily if function was not inlined?

#148
From: Johann 'Myrkraverk' Oskarsson
Date: Sat, 10 Oct 2026 21:58
21 lines
1906 bytes
On 10/5/2026 11:44 PM, fir wrote:
> best option maybe would be to have some guard which will guard me if 
> given function marked as inlined was not inlined?
> 
> is there something like that?

Not that I'm aware of.  MSVC has /forceinline/ as a keyword, and you
could use that -- if not for the fact you don't use Windows, I presume
-- and you've already seen the suggestion to check the ASM output.  I'll
go one step further, and say you can also just look at the disassembly
of the object file.

That one is sometimes easier, depending.


Best wishes, and happy forcing inlines.
-- 
Johann | email: invalid -> com | http://www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | via Easynews.com
https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:;
Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social
Technical Details
Message-ID: <zyyyS.24877$YNTa.1224@fx01.ams4>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!fx01.ams4.POSTED!not-for-mail
References: <11a0glr$131k3$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!fx01.ams4.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: how to check easily if function was not inlined?
Newsgroups: comp.lang.c
References: <11a0glr$131k3$1@dont-email.me>
Content-Language: en-US
From: Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid>
Organization: Watcom Pro Ltd.
In-Reply-To: <11a0glr$131k3$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 21
Message-ID: <zyyyS.24877$YNTa.1224@fx01.ams4>
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Sun, 11 Oct 2026 05:58:55 +0800
X-Received-Bytes: 1696