TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: David Burns
from: Kurt Kuzba
date: 1998-07-10 00:46:30
subject: Compiler, linker, assembl

DB>   What's a linker for?  why would you need one?  Why can't
DB>   a compiler have on built in to create an executable?
DB>   Why are assemblers bundled with C compilers?
   Code is compiled to linkable objects.
   Many C compilers also include a asm compiler to allow the
   programmer to work at a lower level, "closer to the metal",
   in order to produce more optimised code. In general, you
   will never need this, though many people do enjoy the use
   of assembly routines to provide faster or more powerful code.
   All compilers produce linkable objects, which are then used
   to form projects, programs, or libraries.
   When you compile a set of functions, you get a .obj file.
   This file is a linkable code object. If you use a lib.exe
   file to make a library from it, or to add it to an existing
   library, you must supply the prototypes in a .h file, or add
   them to the .h file accompanying the .lib to which you added.
   The linker can take your .obj file, and, if you are building
   the .exe or .com file, link it to the startup code and
   whatever libraries you are using, resulting in an executable
   code object in which all the parts are linked and all the
   functions are present, excepting, naturally, .dll or other
   dynamic linking library formats, such as .bgi files.

> ] A one-eyed man among the blind is a dangerous heretic.......

---
* Origin: *YOPS ]I[* 8.4 GIG * RA/FD/FE * Milwaukee, WI (1:154/750)
SEEN-BY: 396/1 622/419 632/371 633/260 267 270 371 634/397 635/506 728
SEEN-BY: 639/252 670/213 218
@PATH: 154/750 222 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.