Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 7.1

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.