aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1328

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

active  Topic # 1328  chain statement vs include statement

17/12/2005 @ 03:56
by john-r

Anonymous



I have studied iBAddress_ibas.TXT and iBAddress2_ibas.TXT. I have a small understanding of what the statement chain is doing. And i have compiled iBAddress_ibas.TXT

In my program, i have used yhe statement include.

What is the difference?

Is there any difference in the compiled code?

Is there any difference at run time in terms of how much memory is used?

john-r

  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1
--------
19/12/2005 @ 13:00
by aldweb

Anonymous

visitor
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
Write to aldweb   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^