Keywords: sdccman

## 3.2.1 Single Source File Projects

For single source file 8051 projects the process is very simple. Compile your programs with the following command sdcc sourcefile.c. This will compile, assemble and link your source file. Output files are as follows:

- sourcefile.asm - Assembler source file created by the compiler
- sourcefile.lst - Assembler listing file created by the Assembler
- sourcefile.rst - Assembler listing file updated with linkedit information, created by linkage editor
- sourcefile.sym - symbol listing for the sourcefile, created by the assembler
- sourcefile.rel - Object file created by the assembler, input to Linkage editor
- sourcefile.map - The memory map for the load module, created by the Linker
- sourcefile.mem - A file with a summary of the memory usage
- sourcefile.ihx - The load module in Intel hex format (you can select the Motorola S19 format with —out-fmt-s19. If you need another format you might want to use objdump or srecord - see also section subsec:Postprocessing-the-Intel). Both formats are documented in the documentation of srecord
- sourcefile.adb - An intermediate file containing debug information needed to create the .cdb file (with —debug)
- sourcefile.cdb - An optional file (with —debug) containing debug information. The format is documented in cdbfileformat.pdf
- sourcefile.omf - An optional AOMF or AOMF51 file containing debug information (generated with option —debug). The (Intel) absolute object module format is a subformat of the OMF51 format and is commonly used by third party tools (debuggers, simulators, emulators).
- sourcefile.dump* - Dump file to debug the compiler it self (generated with option —dumpall) (see section 3.3.12 and section 9.1 ”Anatomy of the compiler”).