factor/basis/tools/deploy/config/config-docs.factor

110 lines
5.5 KiB
Factor
Raw Normal View History

USING: help.markup help.syntax words alien.c-types alien.data assocs
2007-10-31 01:09:24 -04:00
kernel math ;
2007-10-06 13:37:47 -04:00
IN: tools.deploy.config
ARTICLE: "deploy-flags" "Deployment flags"
2011-11-21 16:10:09 -05:00
"There are three sets of deployment flags. The first set controls the major subsystems which are to be included in the deployment image:"
{ $subsections
deploy-math?
deploy-unicode?
deploy-threads?
deploy-ui?
}
2007-10-06 13:37:47 -04:00
"The second set of flags controls the level of stripping to be performed on the deployment image; there is a trade-off between image size, and retaining functionality which is required by the application:"
{ $subsections
deploy-io
deploy-reflection
deploy-word-props?
deploy-c-types?
2011-11-21 16:10:09 -05:00
}
"Finally, the third set controls the format of the generated product:"
{ $subsections
deploy-console?
} ;
2007-10-06 13:37:47 -04:00
2008-12-08 15:58:00 -05:00
ABOUT: "deploy-flags"
2007-10-06 13:37:47 -04:00
HELP: deploy-name
{ $description "Deploy setting. The name of the executable."
$nl
"On Mac OS X, this becomes the name of the application bundle, with " { $snippet ".app" } " appended. On Windows, this becomes the name of the directory containing the executable." } ;
2007-10-31 01:09:24 -04:00
HELP: deploy-word-props?
{ $description "Deploy flag. If set, the deploy tool retains all word properties. Otherwise, it applies various heuristics to strip out un-needed word properties from words in the dictionary."
2007-10-06 13:37:47 -04:00
$nl
2007-10-31 01:09:24 -04:00
"Off by default. Enable this if the heuristics strip out required word properties." } ;
2007-10-06 13:37:47 -04:00
HELP: deploy-word-defs?
{ $description "Deploy flag. If set, the deploy tool retains word definition quotations for words compiled with the optimizing compiler. Otherwise, word definitions are stripped from words compiled with the optimizing compiler."
$nl
2007-12-11 22:36:40 -05:00
"Off by default. During normal execution, the word definition quotation of a word compiled with the optimizing compiler is not used, so disabling this flag can save space. However, some libraries introspect word definitions dynamically (for example, " { $vocab-link "inverse" } ") and so programs using these libraries must retain word definition quotations." } ;
2007-10-31 01:09:24 -04:00
HELP: deploy-c-types?
{ $description "Deploy flag. If set, the deploy tool retains word properties containing metadata for C types and struct classes; otherwise, these properties are stripped out, saving space."
$nl
"Off by default."
2007-10-06 13:37:47 -04:00
$nl
"The optimizing compiler is able to fold away calls to various words which take a C type as an input if the C type is a literal string, for example,"
{ $list
{ $link c-type }
{ $link heap-size }
{ $link <c-array> }
{ $link <c-direct-array> }
{ $link malloc-array }
{ $link <ref> }
{ $link deref }
}
"If your program looks up C types dynamically or from words which do not have a stack effect, you must enable this flag, because in these situations the C type lookup code is not folded away and the word properties must be consulted at runtime." } ;
2007-10-06 13:37:47 -04:00
HELP: deploy-math?
2007-10-31 01:09:24 -04:00
{ $description "Deploy flag. If set, the deployed image will contain support for " { $link ratio } " and " { $link complex } " types."
2007-10-06 13:37:47 -04:00
$nl
2007-10-31 01:09:24 -04:00
"On by default. Often the programmer will use rationals without realizing it. A small amount of space can be saved by stripping these features out, but some code may require changes to work properly." } ;
2007-10-06 13:37:47 -04:00
HELP: deploy-unicode?
{ $description "Deploy flag. If set, full Unicode " { $link POSTPONE: CHAR: } " syntax is included."
2008-03-20 22:11:53 -04:00
$nl
"Off by default. If your program needs to use " { $link POSTPONE: CHAR: } " with named characters, enable this flag." } ;
2008-03-20 22:11:53 -04:00
HELP: deploy-threads?
{ $description "Deploy flag. If set, thread support will be included in the final image."
$nl
2010-06-10 17:39:13 -04:00
"On by default. Most programs depend on libraries which use threads even if they don't use threads directly; for example, timers, non-blocking I/O, and the UI are built on top of threads. If after testing your program still works without threads, you can disable this feature to save some space." } ;
2008-03-20 22:11:53 -04:00
2007-10-06 13:37:47 -04:00
HELP: deploy-ui?
{ $description "Deploy flag. If set, the Factor UI will be included in the deployed image."
$nl
"Off by default. Programs wishing to use the UI must be deployed with this flag on." } ;
2011-11-21 16:10:09 -05:00
HELP: deploy-console?
{ $description "Deploy flag. If set, the deployed executable will be configured as a console application. On Windows, this means the application will be deployed in the console subsystem and will have a console attached. On Mac OS X, this means the application will be deployed as a single executable instead of an application bundle directory. On other Unix platforms, the flag has no effect."
$nl
"On by default." } ;
2007-10-31 01:09:24 -04:00
HELP: deploy-io
{ $description "The level of I/O support required by the deployed image:"
{ $table
{ "Value" "Description" }
{ "1" "No input/output" }
{ "2" "Basic ANSI C streams" }
{ "3" "Non-blocking streams and networking" }
}
2011-11-21 16:10:09 -05:00
"The default value is 3. The value should only be reduced if your application does not depend on asynchronous I/O functionality and does not use networking." } ;
2007-10-31 01:09:24 -04:00
HELP: deploy-reflection
{ $description "The level of reflection support required by the deployed image."
{ $table
{ "Value" "Description" }
{ "1" "No reflection" }
{ "2" "Retain word names" }
{ "3" "Prettyprinter" }
{ "4" "Debugger" }
{ "5" "Parser" }
{ "6" "Full environment" }
}
"The defalut value is 1, no reflection. Programs which use the above features will need to be deployed with a higher level of reflection support." } ;
2007-10-06 13:37:47 -04:00
HELP: default-config
{ $values { "vocab" "a vocabulary specifier" } { "assoc" assoc } }
{ $description "Outputs the default deployment configuration for a vocabulary." } ;