Message-Id: <199809020200.WAA15202@delorie.com> Comments: Authenticated sender is From: "George Foot" To: GAMMELJL AT SLU DOT EDU Date: Wed, 2 Sep 1998 02:58:29 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Getting registers for arguments and inlining functions Reply-to: mert0407 AT sable DOT ox DOT ac DOT uk CC: djgpp AT delorie DOT com Precedence: bulk On 1 Sep 98 at 15:15, GAMMELJL AT SLU DOT EDU wrote: > By looking at the .s file below ones sees that the function zadd is > not inline. The call _zadd__Fii has not been eliminated. In fact > the .s file looks exactly like the one with no effort to inline. > How does one make the compiler do inlining? I have read "An inline > function is as fast as a macro" where I got the scheme for declaring > zadd to be inline, but I don't get what I expected in the .s file. > I explain what I expected below. Move the definition of `zadd' so that it's before the `main' function. The compiler can't inline the call if it doesn't know what is in `zadd' yet. -- george DOT foot AT merton DOT oxford DOT ac DOT uk