Aerospace



Discussion Forum

Home

Company Information

Information Request

Linux How-to Guides

ADSP 21xx
Digital Signal Processing
Tutorials

SW Utilities

On-line Order Form

Aerospace Projects

Commercial Projects

Circuit Boards

Server Support


bonk

Have you found this site useful? Did we save you time? Did we cure your head-ache? Is your hair growing back now?

Please make a donation to help with maintenance.


Objective Real-Time Software on the ADSP21XX

ADSP 21XX Linker

1. Introduction

ASL is a DOS utility, which links and locates the output of an ADI compatible assembler, to create an executable file. This is a Beta version which is still under development and as such it is not yet recommended for serious use. We would appreciate it if you would try the product and send us your comments and bug reports.

The full source code in ANSI C is included. The product is being developed using an old 16 bit C compiler, to ensure portability to almost any platform.

2. Usage

ASL is used with a single target.loc response file which lists the object modules to be linked, as well as the segment start and end addresses to be used for the code and data location.

Example:

asl target

3. Linker/Locater Response File

The link and locate response file target.loc has to be constructed as in the following example:

Link and locate information
Don't put comments in between key word pairs!

List all the object files between these two key words:
.OBJECTS
645ut.obj
645ld.obj
.ENDOBJECTS

You can put comments here...
Note that unnamed DONTCARE segments will be put in the
first available segment of the right type.

First list the PM segments,
.PMSEGMENTS
INT_PM    0000 2FFF
INT_CONST 3000 3FFF
.ENDPMSEGMENTS

then list the DM segments and
always keep the addresses in incrementing order.
.DMSEGMENTS
INT_DM    0000 2FFF
INT_INIT  3000 3FFF
.ENDDMSEGMENTS

.END

4. File Formats

All files are ASCII text files. The weird, irregular file format of the ADI assembler is converted to a regular format, for readability and ease of use.

All key words start with a DOT in the leftmost column and are upper case only.

File fields are space delimited and end with a Line Feed character, in Unix/Windows style.

All files are terminated with a CPM end of file control Z character, for compatibily with almost all editors.

All input files are filtered and garbage characters removed, before being processed.



Copyright © 1996-2008, Aerospace Software Ltd., GPL.