Re: [linux-audio-dev] code in different files affects speed?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] code in different files affects speed?
From: Phil Kerr (phil_AT_plus24.com)
Date: Sun Dec 08 2002 - 18:29:18 EET


 From a 'C optimisation tutorial'

http://www.abarnett.demon.co.uk/tutorial.html

# Compilers can often optimise a whole file - avoid splitting off
closely related functions into separate files, the compiler will do
better if can see both of them together (it might be able to inline the
code, for example). #

-P

On Sunday, Dec 8, 2002, at 15:48 Europe/London, Paul Davis wrote:

> does anyone here know if splitting code across different files, or for
> that matter, reordering the layout of one source file so that
> functions called together are now "far apart" can actually affect
> execution speed?
>
> --p
>


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sun Dec 08 2002 - 18:31:21 EET