Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#DEFINE - Why?
Message
De
31/03/2008 16:07:52
 
 
À
31/03/2008 15:57:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01306848
Message ID:
01307130
Vues:
11
Memory footprint should be a far greater issue than the size of the program IMHO because disk is way bigger and cheaper than RAM.

>As for program size, I'm referring to the resulting p-code file (i.e. the size of the .FXP file). Not that it contradicts what you just said -- just clarifying my claim of larger program size. Each refrence to a #DEFINE constants result in a copy of the same constant value within the p-code file. Unless the compiler "pools" or "folds" these values into one common copy, your resulting p-code file can begin to balloon in size (in this case, I'm talking the effect of #DEFINEs for string constants). Numerics and other simple values generally don't pose much of a problem -- they are small enough not make too much difference. Strings on the other hand could pose more of a problem due to larger size.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform