Smart linking for minimal memory requirements:
The option -smart is reserved for applications
that do not use dynamic class loading, which is the case for most
embedded applications. Here, the Builder can analyse the application
thoroughly and remove any code or data that is not essential for the
execution of the application. This results in a significant reduction
in code size for most applications. The example code above can be
reduced by a factor of nearly 10:
> jamaica -smart HelloWorld
Jamaica Builder Tool 2.2 Release 1
Generating code for target 'linux-gnu-i686'
+ HelloWorld__.c
* C compiling
* linking
* stripping
Class file compaction gain: 95.85755% (1722798 ==> 71366)
> ls -l HelloWorld
-rwxr-xr-x 1 user group 239352 Oct 2 13:03 HelloWorld
|