[futurebasic] Re: [FB] Radio Buttons

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2008 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Fri, 18 Jan 2008 22:44:43 -0700
On Jan 18, 2008, at 10:33 PM, Joe Lewis Wilkins wrote:

> At some point, I thought code that was not used was weeded out when  
> we built applications, so it really didn't hurt to include almost  
> everything. I don't know if that is the case now. ANYONE?


No, that was never true with FB. It is not and was never an  
optimizing compiler. Staz talked about the *possibility* of adding it  
years ago, but it never happened. Didn't you ever wonder why your  
small 10 line FB program compiles to 340k? No optimization and no  
dead code stripping is the reason.

The good news: FBtoC using gcc is an optimizing compiler (meaning it  
can make the code faster and smaller) and it can also eliminate dead  
code (i.e. code that is not executed ever and isn't needed).  This  
was what you were describing Joe with being able to include code  
without having to worry if it was needed because the compiler removes  
it.  There are preference options in FBtoC to accomplish all of the  
above. That same 10 line FB program compiled with FBtoC is closer to  
40 to 60k.

Brian S.