??? 02/15/05 07:59 Read: times |
#87484 - Got there at last! Responding to: ???'s previous message |
Lee Kien said:
Ok, i just check. It actually auto compiles everything using these programs :
MCS-51 Macro Assembler MCS-51 RELOCATOR AND LINKER V3.0 Yes, that's the way things normally work - although, as Erik says, some tools do combine the steps. Think how much time you could've saved by doing that check in the first place! Note that "compiling" is what a compiler does - compilers compile high-level languages such as 'C' into Object code; "assembling" is what an assembler does - assemblers assemble low-level assembly code into Object code; Linking (& Locating) is what a Linker (& Locator) does - Linker/Locators take the Object code outputs from Assemblers and Compilers, Link them together and then locate everything to the absolute memory addresses for the target. The overall process (compiling, assembling, linking, locating) is known as Building I also just opened the M51 file, and here are the contents :
LINK MAP FOR E:8051SIMB2(B2) TYPE BASE LENGTH RELOCATION SEGMENT NAME ---- ---- ------ ---------- ------------ REG 0000H 0008H "REG BANK 0" CODE 0000H 2FE6H ABSOLUTEDoes this mean that my code is 2FE6H length long Yes, that is precisely what it is showing you! or is it just still showing how many lines my code consist of? See the description (above) of the Build process. The Linker receives the output of the assembler - it knows nothing about source code. This illustrates why it is important that you understand the build process! |
Topic | Author | Date |
Finding out the ROM limit | 01/01/70 00:00 | |
Tools? | 01/01/70 00:00 | |
More on Intel Hex - gaps! | 01/01/70 00:00 | |
k vs K | 01/01/70 00:00 | |
Apples & Pears! | 01/01/70 00:00 | |
Thanks | 01/01/70 00:00 | |
Err..., no | 01/01/70 00:00 | |
Forgot to ask - LST file? | 01/01/70 00:00 | |
d51 | 01/01/70 00:00 | |
Need clarification | 01/01/70 00:00 | |
More Clarification Needed! | 01/01/70 00:00 | |
Info | 01/01/70 00:00 | |
More Clarification Needed! | 01/01/70 00:00 | |
Yes | 01/01/70 00:00 | |
Unlikely | 01/01/70 00:00 | |
suspect | 01/01/70 00:00 | |
Info | 01/01/70 00:00 | |
Got there at last! | 01/01/70 00:00 | |
Got it :D | 01/01/70 00:00 | |
Too big! | 01/01/70 00:00 | |
Thanks | 01/01/70 00:00 | |
7 days | 01/01/70 00:00 | |
I suggest this | 01/01/70 00:00 | |
something amiss | 01/01/70 00:00 | |
the whole LST file | 01/01/70 00:00 | |
LST file | 01/01/70 00:00 | |
and the story is | 01/01/70 00:00 | |
well.... | 01/01/70 00:00 | |
7 days well spent! | 01/01/70 00:00 | |
of course it does | 01/01/70 00:00 | |
Noted | 01/01/70 00:00 | |
so | 01/01/70 00:00 | |
hexmap![]() | 01/01/70 00:00 |