Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does commented code really affect size of .exe?
Message
From
08/02/2011 06:26:27
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01498562
Message ID:
01499149
Views:
64
>>>Hi,
>>>
>>>I wonder if a commented code adds to the size of the .EXE? My guess is that since the commented code increases the size of the .VCT file (of the class library where the code resides) it has to affect the .EXE; that is, it has to increase its size. Does it make sense?
>>
>>I believe if you put a compiler directive around the comments they will not be compiled in. #IF .F. comments #ENDIF
>
>I understand that. But my question that I should have posed was differently, does the size of the class .VCT file affects the size of the .EXE. That is, even if I comment the code or put it within #IF #ENDIF, the size of the .VCT file will go up (just the way VFP memo grows). And I am not sure if VFP at build time does not pull the .VCT file in the .EXE. Obviously it (VFP) does not pull the code into the .EXE but I am not sure what it does with the .VCT file. I will probably do a test of adding tons of commented code (or #IF #ENFID) and rebuild the .EXE to see if the size of the .EXE will change.
>Thank you.

On Project Info, disable "Debug info" before to build the exe.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform