Yes...  I knew that the EXE files have a "header" that launches the runtime to 
load the code.

You can test the differences to see yourself what happens...

 

Best regards.

 


To: nsbasic...@yahoogroups.com
From: g...@nsbasic.com
Date: Tue, 21 Apr 2009 09:52:50 -0400
Subject: Re(2): [nsbasic-ce] Use of Remarks, REM, or the semicolon and comments







I'll check this some more, but you need to consider that the EXE has
some additional overhead: there is an executable stub that contains
enough code to start the runtime and load your code into it. 

So, the size of the exe file should be (roughly) 1/2 the size of
the .nsb file, less the comments, plus the stub (6656 bytes). 
>
>
>Hi all again.
> 
>I was testing again a little bit the problem related to comments and EXE
>file sizes and I suppose the following things:
> 
>If I make an EXE file from the project in NSB format, the
>comments are not stripped out in EXE because the size is near to the
>NSB project file.
> 
>If I save the NSB project in TXT format, the file of the TXT is about
>half of size of the same project in NSB but contains all code and
>comments... the differences of sizes between the two formats must be
>because of the code encryption. 
> 
>If I open this TXT generated from the NSB format and I use the NSBasic
>IDE to make a new EXE from it, then the EXE that results is very smaller
>than the EXE that appears when you uses the original NSB file
>(comments now are stripped out, I suppose...) and the original TXT file
>used (!!!!!!!) is surprisingly saved again without any comments (and
>without any kind of asking) with the exception of the comments generated
>by the IDE.
> 
>My conclussion is that the IDE only generates an EXE without your
>comments if you first save your project in TXT format and opens it with
>the IDE to generate the EXE, but it contains the comments generated by
>the IDE. I don't remember very well, but I think that the size of the
>EXE may be more smaller if you erases all generated comments in the TXT file.
> 
> 
> 
>Best regards.
> 
>To: nsbasic...@yahoogroups.com
>From: dacars...@hotmail.com
>Date: Tue, 21 Apr 2009 07:53:56 +0000
>Subject: RE: [nsbasic-ce] Use of Remarks, REM, or the semicolon and comments
>
>
>
>Hi all.
> 
>George, tell me if I am wrong... but when I was testing because of
>the bug that shows a error in the EXE when the program exceeds
>certain size limit, I had to make a little program in Visual Basic that
>erases all comments from my code (saving my project in TXT format
>before) to "compilate" the EXE file sucesfully. My program with comments
>included was exceeding the limit that causes the EXE file to not run
>correctly, but if I erase the comments and I make an EXE from the NSB
>IDE then the EXE that results was smaller and runs fine. I was testing
>this fact and I found that the EXE reduces 2 bytes for each character
>(or byte) of comments. I supposed that the encryption method on NSB
>format and EXEs was the cause of the "2 bytes reduction" for each byte.
> 
>I'm wrong???
> 
>Best regards.
>
> 
>To: nsbasic...@yahoogroups.com
>From: g...@nsbasic.com
>Date: Sun, 19 Apr 2009 07:08:22 -0400
>Subject: Re: [nsbasic-ce] Use of Remarks, REM, or the semicolon and comments
>
>
>
>Remarks have no effect on execution time. When you make an exe file,
>they are stripped out of your code, reducing program size.
>
>The size of strings and variables is limited by system memory.
>
>Programs have a maximum size of 1 or 2 megs, depending on a few things.
>This is the code itself - variables used at runtime do no count.
>
>>Is there any affect on how many remarks can be used in a program?
>>
>>Any down side in using alot of remarks?
>>
>>Limitation to final file size?
>> 
>>are they discarded when making an EXE file?
>>
>>Any limitations for Strings, variables
>>
>>Is there a chart somewhere that illustrates these limits?
>>
>>Thanks 
>>
>>
>>
>>------------------------------------
>>
>>Yahoo! Groups Links
>>
>>
>>
>
>
>
>Ahora lee tus emails de Hotmail desde tu móvil Vodafone ¡Aquí!
>
>
>Haz búsquedas desde Live Search y ayuda a 22 niños de un orfanato en
>Nepal ¡Colabora! 
>
>









_________________________________________________________________
Más rápido, sencillo y seguro. Descárgate ya el nuevo Internet Explorer 8 ¡Es 
gratis!
http://www.vivelive.com/ie8 
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to