www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/09/05:37:46

From: ranla AT post DOT tau DOT ac DOT il (Tal Lavi)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Can't inline routines from other moudles
Date: Mon, 9 Nov 1998 12:20:17 LOCAL
Organization: Tel-Aviv University Computation Center
Lines: 25
Message-ID: <ranla.83.0008C20E@post.tau.ac.il>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 981108194129 DOT 14294D-100000 AT is>
NNTP-Posting-Host: slip-108.tau.ac.il
X-Newsreader: Trumpet for Windows [Version 1.0 Rev B final beta #4]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>On Sun, 8 Nov 1998, Tal Lavi wrote:

>> Actually, that makes sense, inlining is done in compile time, not in link 
>> time, right?

>Right.

>> Is there a way over this problem? Those routines are called very frequently, 
>> and not inlining them may cause a huge performance issue.

>``May cause'' or ``does cause''?  There's a big difference between these 
>two.  I suggest to profile the program before you go to extremes like 
>that.

>The way to inline library functions is to copy their definitions into 
>your source, or to write your own substitutes for them.  Is it really 
>worth this hassle?

Those functions are already written by me, they just located in another moudle.

>Which functions are those, btw?

Functions which returns the correct sin,cos & tan values from the LUT.


- Raw text -


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