| Electronic Components Datasheet Search |
|
UM0144 Datasheet(PDF) 36 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0144 Datasheet(HTML) 36 Page - STMicroelectronics |
|
36 / 92 page ![]() 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. |
|
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 |
| 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 |