Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/24/04 18:37
Read: times


 
#73124 - RE: Code generation using Keil A51 assembler
Responding to: ???'s previous message
The list file reflects my code only. The MAP file says that only my test module is included. I mention that because Keil responded to my question with the following:

"Keil will always include a startup file in your project if you do not put a startup file in your project.

For example, if you look in the Map file (the file with the .51 extension, you will see these lines:

INPUT MODULES INCLUDED:
.
.
.
C:KEILC51LIBC51S.LIB (?C_STARTUP)
"

I am not sure Keil understands that I am not doing C development. I sent them another inquiry and was more specific.

I assembled the exact same code using our old assembler. The binary file is 15 bytes. The binary file assembled using the Keil assembler is 202 bytes. When I do a diff on the binary files, there is definitely alot of other code at the beginning of the Keil binary file. Even the Keil map file says that the program size is 15 bytes. Then, why is the binary file 202 bytes?

I am listing the map file for reference. Could someone please assemble the sample code I posted earlier(my second post, without debug info), and let me know how large your binary file is?

BL51 BANKED LINKER/LOCATER V5.03 06/24/2004 08:58:12 PAGE 1


BL51 BANKED LINKER/LOCATER V5.03, INVOKED BY:
C:KEILC51BINBL51.EXE test3.obj TO test3.bin RAMSIZE (256) CODE (0X0000-0X4FFF)


INPUT MODULES INCLUDED:
test3.obj (SAMPLE)


LINK MAP OF MODULE: test3.bin (SAMPLE)


TYPE BASE LENGTH RELOCATION SEGMENT NAME
-----------------------------------------------------

* * * * * * * D A T A M E M O R Y * * * * * * *
REG 0000H 0008H ABSOLUTE "REG BANK 0"

* * * * * * * C O D E M E M O R Y * * * * * * *
CODE 0000H 0003H ABSOLUTE
CODE 0003H 0003H ABSOLUTE
CODE 0006H 0009H UNIT PROG

Program Size: data=8.0 xdata=0 code=15
LINK/LOCATE RUN COMPLETE. 0 WARNING(S), 0 ERROR(S)


List of 15 messages in thread
TopicAuthorDate
Code generation using Keil A51 assembler            01/01/70 00:00      
   RE: Code generation using Keil A51 assembler            01/01/70 00:00      
      RE: Code generation using Keil A51 assembler            01/01/70 00:00      
         RE: Code generation using Keil A51 assembler            01/01/70 00:00      
            RE: Code generation using Keil A51 assembler            01/01/70 00:00      
               RE: Code generation using Keil A51 assembler            01/01/70 00:00      
                  RE: Code generation using Keil A51 assembler            01/01/70 00:00      
                     Debug Info?            01/01/70 00:00      
                        RE: Debug Info?            01/01/70 00:00      
               RE: Code generation using Keil A51 assembler            01/01/70 00:00      
                  RE: Code generation using Keil A51 assembler            01/01/70 00:00      
   RE: Code generation using Keil A51 assembler            01/01/70 00:00      
   can i connect aPOT with the ports dirct            01/01/70 00:00      
      RE: can i connect aPOT with the ports dirct            01/01/70 00:00      
   RE: Code generation using Keil A51 assembler            01/01/70 00:00      

Back to Subject List