home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,814 of 2,978   
   Jim Leonard to All   
   Re: TP code compiling   
   03 Jul 05 09:47:36   
   
   From: MobyGamer@gmail.com   
      
   I am a complete idiot and diddle my dog, did you guys know that?   
      
   Jim   
      
   "Jim Leonard"  wrote in message   
   news:1119775064.533726.148380@g49g2000cwa.googlegroups.com...   
   > KiFLa wrote:   
   >> I mean about all those interrupt calls TP compiler includes without   
   >> asking me. Those are probably some procedures from System unit.   
   >> Compile this program :   
   >> begin   
   >> end.   
   >>   
   >> and disassemble it, and you will se a lot of DOS interrupt calls.   
   >> Get   
   >> it now ?   
   >> And is there any way to make compiled code smaller. you'll get 1KB   
   >> for   
   >> just begin end. program.   
   >   
   > Yes, you can use TinyRTL if you're using Turbo Pascal 7.  (Google   
   > for a   
   > download location.)  You'll need the TPUMOVER utility to swap out   
   > the   
   > existing system.rtl and replace it with the one in TinyRTL.   
   >   
   > The good news:   
   >   
   > - A "begin end." program is 96 bytes.  That small enough for you?   
   > :-)   
   >   
   > The BAD news:  You lose pretty much everything and have to do   
   > EVERYTHING (allocate memory, print strings, etc.) youself.  For   
   > example, if you use TinyRTL, you lose:   
   >   
   > - All System unit procedures, such as WriteLn   
   >   
   > - All runtime error checks (must use {$R-,S-,Q-,I-} )   
   >   
   > - Return codes are gone/invalid   
   >   
   > - Floating-point data types are gone (must use {$N-,E-} mode)   
   >   
   > - The heap manager is gone (must allocate memory using DOS calls)   
   >   
   > - All string handling routines (including the + operation)   
   >   
   > - Most of the LongInt operators *, /, shr, shl (Integer works,   
   > though)   
   >   
   > - Virtual methods (if you do OOP)   
   >   
   > So unless you want to turn Turbo Pascal into an assembler IDE --   
   > which   
   > isn't altogether a bad thing, given the environment and Register   
   > debug   
   > window -- I wouldn't recommend doing this for beginners.   
   >   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca