public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: Perf : put all the code in one source file only ?
       [not found] <bn88y4h037nanottoun7i38u.1407003151444@email.android.com>
@ 2014-08-03  7:38 ` Alain Meunier
  0 siblings, 0 replies; 2+ messages in thread
From: Alain Meunier @ 2014-08-03  7:38 UTC (permalink / raw)
  To: gcc-help

Thanks,

Why would I use flto with a single file at the first place ?

________________________________
> Date: Sat, 2 Aug 2014 14:12:31 -0400 
> Subject: RE: Perf : put all the code in one source file only ? 
> From: n8tm@aol.com 
> To: deco33@hotmail.fr; gcc-help@gcc.gnu.org 
>  
> Single file permits some auto inlining even without flto. 
>  
> Tim Prince 
>  
>  
> -------- Original message -------- 
> From: Alain Meunier <deco33@hotmail.fr> 
> Date: 
> To: gcc-help@gcc.gnu.org 
> Subject: Perf : put all the code in one source file only ? 
>  
>  
> Hello, 
>  
> My question is purely theorical : what are the eventual disadvantages  
> of putting a lot of functions in the same main.c file instead of  
> spanning them into multiple static libraries ? 
>  
> How will gcc sort this out ? 
>  
> This question is neither related to maintainability, nor readability,  
> nor executable size, nor ram usage. 
>  
> Just performance. 
>  
> Will the code units play a role or something ? Or whatever I don't think of ? 
>  
> Will the perf will be the same ? 
>  
> Thanks, 
>  
 		 	   		  

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Perf : put all the code in one source file only ?
       [not found] <DUB121-W1390C3EF77DDFFEF6F7D09B7E40@phx.gbl>
@ 2014-08-02 17:23 ` Alain Meunier
  0 siblings, 0 replies; 2+ messages in thread
From: Alain Meunier @ 2014-08-02 17:23 UTC (permalink / raw)
  To: gcc-help

Hello,

My question is purely theorical : what are the eventual disadvantages of putting a lot of functions in the same main.c file instead of spanning them into multiple static libraries ?

How will gcc sort this out ?

This question is neither related to maintainability, nor readability, nor executable size, nor ram usage.

Just performance.

Will the code units play a role or something ? Or whatever I don't think of ?

Will the perf will be the same ?

Thanks,
 		 	   		   		 	   		  

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-03  7:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bn88y4h037nanottoun7i38u.1407003151444@email.android.com>
2014-08-03  7:38 ` Perf : put all the code in one source file only ? Alain Meunier
     [not found] <DUB121-W1390C3EF77DDFFEF6F7D09B7E40@phx.gbl>
2014-08-02 17:23 ` Alain Meunier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).