Article Preview
Buy Now
COLUMN
Compiler Optimization
What the REALbasic compiler can do on optimization
Issue: 7.1 (November/December 2008)
Author: Christian Schmitz
Author Bio: Christian Schmitz is the creator of the Monkeybread Software REALbasic Plugins.
Article Description: No description available.
Article Length (in bytes): 4,541
Starting Page Number: 44
Article Number: 7116
Related Link(s): None
Excerpt of article text...
Because REALbasic is not necessarily used for serious number crunching, you might think there is no need for REALbaisc to have a highly optimized compiler. Still REALbasic does have a few optimizations.
Stripping Linker
The REALbasic linker does not include plugins, classes, and methods in the final application which are not used. This is the reason why you can compile a 5 MB application while you have 150 MB worth of plugin files in your plugins folder. Also REALbasic internal classes are stripped from your application if you don't use them: for example, the EmailMessage class.
If you create a project and you add a class "testClass" and inside a method "testMethod", you will see this: The application size will be nearly equal to an empty project, because REALbasic did not include this test class. I do not know why the application compiled from source code with testClass is still a few bytes bigger.
...End of Excerpt. Please purchase the magazine to read the full article.