Smaller EXEs

 BBS: Inland Empire Archive
Date: 11-05-92 (08:57)             Number: 355
From: TOM HANLIN                   Refer#: NONE
  To: ERIC B. FORD                  Recvd: NO  
Subj: Smaller EXEs                   Conf: (2) Quik_Bas
EB>In an effort to reduce the size of my EXE on a program I'm planning to
EB>distribute, I thougt I'd make a LIB with just those functions needed by the

Ummm, Eric-- if that technique actually saved you space, you're using
LINK incorrectly.  LINK *automatically* pulls in just the routines you
need, provided that you specify the .LIB in the LIB slot, not in the
.OBJ slot.  Some versions of Microsoft's QuickBasic and Bascom/PDS
compilers do it the wrong way, which has caused a lot of headaches over
the years.

For example, if you're linking the program TEST.OBJ with FOO.LIB, it
should look something like this:
   LINK TEST/EX,,NUL,FOO;

It should NOT look like this:
   LINK TEST+FOO.LIB/EX;

The second method pulls in the whole library.  The first method just
pulls in the routines that are needed from the library.

 * DeLuxe2 1.25 #10646 *


--- WM v2.04/92-0020
 * Origin: The Purple Rose of Cairo (914)473-1697(1:272/58)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET