Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 19/12/2005 @ 13:00 par aldweb
visiteur |
Hello John,
There is indeed a real difference between CHAIN and INCLUDE.
INCLUDE injects a source code in another one and considers the whole as a code module. The code module's size (so called Code Stack) depends on the target device (see MINOSVERSION compiling directive's description).
CHAIN allows to jump from one code module to another one. So, one code is unloaded from memory (but the numbers and strings stacks are kept) when the other one is loaded and its execution is started.
Then: CHAIN is required whenever your source code becomes to large to hold in a sole code module, and INCLUDE is useful when you want to use back some code pieces among different development projects.
Cheers, aldweb |