TinyRTL V1.0 for TP 7.0
-------------------------
What is TinyRTL
-----------------
TinyRTL is a System unit replacement. It allows you to create tiny EXE files
when using Turbo Pascal. The overhead is only 96 bytes.
The Pascal programs using TinyRTL look a little bit like Assembler ones.
So, you have to know ASM in order to use TinyRTL. However, you still can
use all the Pascal structures, such as loops, high-level procedures, and
even objects (probably future versions will have a better support for them).
How to install
----------------
Simply compile SYSTEM.PAS with TP 7.0 to make SYSTEM.TPU. If you're using
a different version of TP, use SYSTEM.TPS from its RTL, not the one
included here. After you got SYSTEM.TPU, copy it to the directory with
the program you want to compile and either turn off the Options|Environment|
Startup...|Load TURBO.TPL option, or create a copy of TURBO.TPL and modify
it with TPUMOVER.
Restrictions
--------------
When using TinyRTL in your programs you can't use all the features that
the standard RTL has. Here's a list of removed features:
- All System unit procedures, such as WriteLn
- All runtime error checks (you have to use {$R-,S-,Q-,I-} mode)
- Return codes (ignore the runtime error messages that IDE shows)
- Floating-point data types (you have to use {$N-,E-} mode)
- Heap manager (allocate memory using DOS calls)
- String handling routines (including the + operation)
+ Some of the LongInt operations: *, /, shr, shl (they still work with Integer)
+ Large variable assignments (that involved a procedure call)
+ Virtual methods
The topics marked with '+' I'm going to implement in the future version of
TinyRTL (I'll try to implement them w/o increasing the overhead size).
Also, note that you can't compile programs with debug information for
standalone debugging. However, you can use the integrated debugger, or
you can compile your program with the standard RTL for debugging (and
use TinyRTL after the bugs are fixed).
Don't forget t
|