Specifications

CHAPTER 8
178
The following example shows that fcsh dramatically reduces compilation time when compiling the same appli-
cation multiple times:
(fcsh) mxmlc -benchmark=true flexstore.mxml
Total time: 8885ms
Peak memory usage: 84 MB (Heap: 58, Non-Heap: 26)
(fcsh) mxmlc -benchmark=true flexstore.mxml
Total time: 5140ms
Peak memory usage: 84 MB (Heap: 57, Non-Heap: 27)
Then, the second full compilation of the same application is much faster:
> touch flexstore.mxml
(fcsh) compile 1
Files changed: 1 Files affected: 0
Total time: 933ms
Peak memory usage: 88 MB (Heap: 62, Non-Heap: 26)
flexstore.swf (522456 bytes)
Total time: 1102ms
Peak memory usage: 77 MB (Heap: 51, Non-Heap: 26)
(fcsh)
About fcsh options
The following table describes the available fcsh options:
Option Description
clear [id]
Removes the target id(s) from memory but saves the target's *.cache file. If you enter this command without
specifying an id argument, fcsh clears all target ids. For information about cache files, see
“About incre-
mental compilation” on page 157.
compile id
Uses incremental compilation (without linking) to compile the specified id. If you try to compile a target that
has not changed, fcsh skips that target.
compc arg1 [...]
Compiles SWC files from the specified sources. This command returns a target id that you can then pass to
other fcsh options. The target ids are incremented by 1 for each new compilation. If you quit fcsh and then
relaunch it, all targets are cleared and the ids start at 1 again.
info [id]
Displays compiler target information such as the source files and cache file name. If you do not specify a
target id, fcsh prints information for all targets in reverse id order.