Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!gatech!bloom-beacon!think!ames!ucbcad!ucbvax!ucdavis!egg-id!ui3!smith
From: smith@ui3.UUCP
Newsgroups: comp.sys.ibm.pc
Subject: Re: Novice questions -Multitasking?  And Borland.
Message-ID: <680004@ui3.UUCP>
Date: Wed, 15-Jul-87 17:24:44 EDT
Article-I.D.: ui3.680004
Posted: Wed Jul 15 17:24:44 1987
Date-Received: Sat, 18-Jul-87 19:14:14 EDT
References: <3054@zen.berkeley.edu>
Organization: MRC, University of Idaho
Lines: 51


<	1.  How do you make the computer shows animated object and at the 
<	    same time producing tones?  There are lots of example in games,
<	    one of them being "3-D_demon."


   This involves intermixing the commands to the speaker with the graphics
   commands.  In addition you can start the speaker going with a tone,
   go away and do something else, and it will continue to sound until you 
   shut it off.  


<	2.  What makes Borland's compilers so fast?  Do they have special
<	    algorithm that nobody ever came up with before, and which they 
<	    have patented by now?  If not, how did they make it so fast?

      Borland compilers (or at least Turbo Pascal) are fast for several
   reasons. The first is that no error recovery system is built into the 
   compiler.  Note that when the compiler finds an error, it stops. It 
   doesn't try to find out what happened and continue as say Microsoft 
   Pascal does. 
      The second thing Borland has is a one pass compiler.  This makes for
   quick compilation, but means that you can't link in pre compiled modules
   from other sources.  Note that when you start compiling large files using
   Turbo Pascal, the compile time is quite long.  Using a program like 
   Microsoft Pascal which allows seperate compilation of modules will 
   rival Turbo in compilation time because you don't compile the entire
   program each time.

      Turbo Pascal also only compiles to a com file which means less 
   complicated code generation.  Therefore it's faster.

      And finally, Turbo Pascal compiles to memory.  If you want to watch
   Turbo slow down a lot try using a lot of include files.


                                     __        
                                    |  |  Opinions expressed are not those    
-----------------------------       |  |  of my employer. Sometimes they are  
William Smith                       |  |  my own, but often they are           
Microelectronics Research Center    \  |  spontaneous emissions of my          
University of Idaho                 /   \ fingertips.   
Moscow, ID  83843                   |    \    
(208)885-7273                       |     \  
                                    |      ---|          
UUCP:  ucdavis!egg-id!ui3!smith     |         |   
----------------------------        |         |          
                                    |----------