Getting Started with Borland C++ Free Command Line Tools and Turbo Debugger
Instructions on how to setup the following Tools in TextPad:
top
To Install Borland's Free Command Line Tools:
Run freecommandlinetools.exe
Then, on the root of your c drive,
- Add the following to the end of your c:\autoexec.bat
set path=%path%;c:\Borland\Bcc55
Then, in your C:\Borland\bcc55\Bin directory,
- Create a file called bcc32.cfg file which will set
the compiler options for the Include
and Lib paths (-I and -L switches to
compiler) by adding these lines:
-I"c:\Borland\Bcc55\include"
-L"c:\Borland\Bcc55\lib"
- Create an ilink32.cfg file which will set
the linker option for the Lib path by
adding this line:
-L"c:\Borland\Bcc55\lib"
Finally, install the turbo debugger to the same location.
top
Borland C++ Compiler - Compile Win32 Windows Program in RELEASE mode.
|
Command
|
C:\Borland\bcc55\Bin\bcc32.exe |
|
Parameters: |
-w-par -tW -tWM -q $File
|
|
Initial Folder: |
$FileDir |
|
Capture output: |
checked
|
|
sound alert when completed |
checked |
|
Regular Expression: |
^\(Error\|Warning\) [^ ]+ \(.+\) \([0-9]+\): |
|
*Note*: |
There is a Trailing Space on the above line. |
| File: |
2 | | Line: |
3 |
Meaning of parameters:
tWM = The compiler creates a multi-threaded .EXE
tW = Target is a Windows application
q = Suppress compiler identification banner
w-par = Supress parameter 'parameter' is never used warning message.
top
Borland C++ Compiler - Compile Win32 DLL in RELEASE mode.
|
Command
|
C:\Borland\bcc55\Bin\bcc32.exe |
|
Parameters: |
-WD -O2 -Vx -Ve -X- -a8 -b- -k- -vi -tWD -tWM- -q -lD"" -laa -lTpd -lx
-lGn -lGi $File
|
|
Initial Folder: |
$FileDir |
|
Capture output: |
checked | |
sound alert when completed. |
Checked | |
Regular Expression: |
^\(Error\|Warning\) [^ ]+ \(.+\) \([0-9]+\): |
|
*Note*: |
There is a Trailing Space on the above line. |
|
File: |
File 2 |
|
Line: |
Line 3 |
Meaning of parameters:
tWM = The compiler creates a multi-threaded .EXE
tWD = Generate a .DLL
q = Suppress compiler identification banner
WD = Generate a .DLL executable (same as -tWD)
O2 = Generate fastest possible code
Vx = Zero-length empty class member functions
Ve = Zero-length empty base classes
X- = use compiler autodependency output
a8 = Quad word alignment aligns non-character data at 64-bit word
(8-byte) boundaries. Data with type sizes of less than eight bytes are
aligned on their type size.
b- = Makes enums byte-sized when possible
k- = Turn off standard stack frame
vi = Control expansion of inline functions
-lD"" =
-laa = Builds a 32-bit Windows application
-lTpd = Targets a Windows .DLL file
-lx = Suppresses creation of map file
-lGn = Do not generate state files
-lGi =
top
Borland C++ Compiler - Compile Win32 Windows Program in DEBUG mode.
|
Command
|
C:\Borland\bcc55\Bin\bcc32.exe
|
|
Parameters: |
-w-par -tW -tWM -v -q -lv $File
|
|
Initial Folder: |
$FileDir
|
|
Capture output: |
checked
|
|
sound alert when completed |
Checked | |
Regular Expression: |
^\(Error\|Warning\) [^ ]+ \(.+\) \([0-9]+\): |
|
*Note*: |
There is a Trailing Space on the above line.
|
|
File: |
File 2
|
|
Line: |
Line 3 |
Meaning of parameters:
tWM = The compiler creates a multi-threaded .EXE
tW = Target is a Windows application
q = Suppress compiler identification banner
w-par = Supress parameter 'parameter' is never used warning message
v = Turn on source debugging for compiler
lv = Turn on source debugging for Linker
top
Borland C++ Turbo-Debugger - RUN Win32 Windows Program compiled in DEBUG
mode.
|
Command |
C:\Borland\BCC55\Bin\TD32.EXE |
|
Parameters: |
$BaseName |
|
Initial Folder: |
$FileDir |
|
Close DOS Window on Exit |
top
Borland's Impdef
|
Command: |
C:\Borland\BCC55\Bin\impdef.exe |
| Parameters: |
output.def $BaseName |
| Initial Folder: |
$FileDir |
| capture output: |
checked |
| sound alert when completed: |
checked |
| Everything else empty. |
top
Undo Read-Only on a file (Attrib -r)
|
Command: |
C:\WINDOWS\COMMAND\Attrib.exe |
|
Parameters: |
$File -r |
|
Initial Folder: |
$FileDir |
|
Nothing Checked. |
top
| This tip was contributed by: |
Garth Fielding II
|
|