aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1328

Forum - Forum
iziBasic - iziBasic


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

actif  Sujet n° 1328  chain statement vs include statement

le 17/12/2005 @ 03:56
par john-r

Anonyme



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

  Poster une réponse  Haut

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

Anonyme

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
Ecrire à aldweb   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^