www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/01/22:01:04

Message-Id: <199809020200.WAA15202@delorie.com>
Comments: Authenticated sender is <mert0407 AT sable DOT ox DOT ac DOT uk>
From: "George Foot" <george DOT foot AT merton DOT oxford DOT ac DOT uk>
To: GAMMELJL AT SLU DOT EDU
Date: Wed, 2 Sep 1998 02:58:29 +0000
MIME-Version: 1.0
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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019