Hi Phil, That's correct. Comments, extra spaces, and basically everything that doesn't apply to the program itself gets stripped or rather ignored by the compiler when compiling the code into a binary file. Even languages like Python ande Java that are byte compiled and optomized for the runtime environment exclude the non essential stuff and just keep the actual programming code. Usually, comments, formatting, extra spacing, etc is only there to make the source more readable and has no effect on the compiled program.
Cheers! On 2/17/12, Phil Vlasak <[email protected]> wrote: > Hi Jim, > I think when a game is compiled, the compiler strips the rem, remark > statements and comment lines out of the executable. > Early on Carl was putting a lot of them in a game written in C plus plus for > DOS, so I could read his code. I compiled the game with and without the > extensive statements and there was not a single byte difference in the size > of the .exe file. > Maybe today this is different but I would think not. > Phil --- Gamers mailing list __ [email protected] If you want to leave the list, send E-mail to [email protected]. You can make changes or update your subscription via the web, at http://mail.audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/[email protected]. If you have any questions or concerns regarding the management of the list, please send E-mail to [email protected].
