Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does commented code really affect size of .exe?
Message
 
 
To
04/02/2011 08:08:28
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01498562
Message ID:
01498713
Views:
69
>>>>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?
>>>
>>>It might depend upon how you compile the app too. With project open and having focus, from main menu select Project / Project Info. From the popup window that appears the first tab (project) has 3 checkboxes - debug info, encryped, and attach icon. I THINK if you deselect 'debug info' that the comments are not compiled into the .exe, thus making it smaller.
>>
>>I agree with you that the check box "debug" (unchecked) will reduce the size of the .EXE. But I think that the commented code still affects the size. Since, if I am not mistaken, at build time the entire .VC? files are added to the .EXE. And since commented code makes the memo field larger and therefore the .VCT file larger it will increase the size of the .EXE. This is how I think it works. But I am not sure.
>
>AFAIR the source is deleted from the memo field copy added into the exe if debug info is excluded, so the comments are gone as well from the exe.

Thank you for clarifying.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform