Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

UM0144 Datasheet(PDF) 36 Page - STMicroelectronics

Part # UM0144
Description  ST7 Assembler Linker
PDF  92 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0144 Datasheet(HTML) 36 Page - STMicroelectronics

Back Button UM0144 Datasheet HTML 32Page - STMicroelectronics UM0144 Datasheet HTML 33Page - STMicroelectronics UM0144 Datasheet HTML 34Page - STMicroelectronics UM0144 Datasheet HTML 35Page - STMicroelectronics UM0144 Datasheet HTML 36Page - STMicroelectronics UM0144 Datasheet HTML 37Page - STMicroelectronics UM0144 Datasheet HTML 38Page - STMicroelectronics UM0144 Datasheet HTML 39Page - STMicroelectronics UM0144 Datasheet HTML 40Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 36 / 92 page
background image
4 Linker
ST7 Assembler Linker
36/92
UM0144
Linking the same modules in the same environment, but generating a .cod file named
prog.cod requires:
LYN game+scores+keys+game1+game2+game3,prog;
4.3.1
Response files
Response files are text files that replace the command line to generate the arguments required. Although
they can be used on the assembler and linker, it only really makes sense to use them on the linker.
The command line given with the name of the program to execute (here LYN) can only take up to 128
characters as its argument. For most programs this is fine, but the linker allows up to128 modules to be
linked in one run; all their names have to be declared to the linker in its first argument.
This is where response files come in—they allow you to redirect the command line parser to a file
instead of expecting arguments to come from the command line or the keyboard. A response file is
invoked by giving an ‘@’ sign and a filename in response to the first argument you want to come from the
response file.
The filename is assumed to have a suffix '.RSP' if none is supplied. Repeating our example used as
earlier, but this time with a response file called game.rsp:
LYN @game.rsp
is all that needs to be typed, and the file game.rsp must contain:
game+scores+keys+
game1+
game2+game3
prog
Which echoes what would have been typed at the keyboard. If the response file ends prematurely, the
remaining arguments are prompted for at the keyboard. In very large session, the .OBJ files argument
won't fit on one line: it can be continued to the next by ending the last .OBJ file on the first line with a '+'.
Note that when using response files, there must be at least two carriage returns at the end of the file.
4.4
Linking in detail
4.4.1
PUBLICs and EXTERNs
All labels declared external in the modules being linked together must have a corresponding PUBLIC
definition in another module. If it doesn't, it may be an error. Similarly, there must only be one PUBLIC
definition of a given label.
The bulk of the linker's job is filling those relative or external blanks left by the assembler in the .OBJ files;
to a lesser extent, it also handles special functions such as DATE or SKIP directives. Equally important, it
has to collate together and allocate addresses to segments.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com