Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#DEFINE - Why?
Message
From
31/03/2008 16:07:52
 
 
To
31/03/2008 15:57:55
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01306848
Message ID:
01307130
Views:
13
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform