Mail Archives: djgpp/1998/09/01/22:01:04
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 -