Hi Dennis, Thank you, I thought that was the difference between low level and high level programming languages. I didn't know about the difference in for the target machine though.
In the first Basic language that I programmed in it actually had peek, poke and something like varpoint. And I learned and used the hexadecimal code to redesign the ascii character set. That was some fun stuff. In VB6 I miss the locate statement that Extended Quick Basic (PDS7) had to put print anywhere on the screen and it could be written to the console so that all dos screen readers would read it automatically. But I sure do love that in VB6 I can send text straight to the sapi5 text to speech engine and use DirectX to play and control multiple sound files. BTW The size of the source code of my larger games look like; awesome frm 160,225 08/08/2011 05:47 AM monopoly frm 163,208 11/24/2008 06:02 PM mach1tts frm 163,709 10/04/2009 03:42 AM football frm 190,946 12/21/2005 07:45 PM mach1 frm 218,234 02/07/2003 11:00 AM The size of your Alter Aeon server code boggles my mind. Thanks again. BFN ----- Original Message ----- Thomas and Jim, Most of the time, the executable size is dominated by the linked in libraries, which are usually a lot bigger than the source. However, the size of the executable is very dependent on the programming language used and can be either bigger or smaller than the source code depending on the language. The target machine is also a big factor in the executable size. For example, assembly language programs almost always compile down to smaller machine code; however, basic programs almost always compile down to much larger programs than the original source, even including comments. This is because assembly language is a very detailed, low level language, wheras in basic a single print statement can require hundreds or thousands of instructions to be compiled correctly. As a real world example, the Alter Aeon server code is written in c++, and the source code size is 9.5 megabytes. The final executable is 14.3 megabytes. This is a particularly good example, because the server uses very few libraries and is the executable size is almost completely server code instead of library code. This is on a 64 bit linux machine. Our previous host server was a 32 bit server, and on 32 bit machines the executable size would only be about ten megabytes instead of 14. In summary, It's really hard to make general assumptions about executable versus code size like 'compiled code is always smaller than the source'. The different languages and architectures allow for extremely wide variation. Just FYI. Dennis Towne Alter Aeon MUD http://www.alteraeon.com Jim Calm down. It's only ones and zeros. [email protected] http://www.kitchensinc.net (440) 286-6920 Chardon Ohio USA --- 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].
