Message Edited by rocco on 03-30-200605:38 PM
Hello Rocco,
The overhead is actually slightly greater than you indicate. For CW S19 files (.SZ), the first line seems to be an extra one containing ASCII path information in S19 format. I presume this gets stripped during the programming process.
Regards,
Mac
Hello
Just some additional input on this one.
Yes CodeWarrior for HC(S)08 and CodeWarrior for HC(S)12 put the full path to the actual executable file in the S0 record.
You can disable generation of the path in the S0 record using burner option -Ns=p.
You can prevent generation of the S0 record using the burner option -Ns=0
You can prevent generation of the s9 record using the burner option -Ns=9.
For more details, check the description of the option -Ns in the Burner manual or on line help.
CrasyCat
Hello CrasyCat,
As a matter of curiosity, is there a similar method of preventing the S0 record from occurring in the SZ file directly generated by the assembler (absolute assembly, no linking)?
Regards,
Mac
Message Edited by CompilerGuru on 04-01-200602:56 PM
Hello Compiler Guru,
Thankyou for your response.
also out of curiosity, why do you need a SRecord file without S0?
The reason for my previous query is to maintain backward compatibility with S19 files generated by CASM08 - at the moment I am using both CW and P&E tools. The output from CASM08 does not generate an S0 record, and I am not yet sure if the presence of one will upset PROG08 programmer. Of course, I can always strip out the record by hand if it proves to be a problem.
Regards,
Mac
rocco wrote:
Hi, Christian:
The ratio depends on the number of bytes that the linker puts on each line, but it is typically around 2.5 to one. In other words, your 960 byte .S19 file would contain approximately 380 to 400 bytes of code.
Note that data that exists in ram is not represented in the .S19 file, so there is no indication of the amount of ram used.
The linker typically puts 32 bytes of code in each line. All values are represented as hexadecimal, so each byte of code takes two characters. That means 64 bytes for code, and 11 bytes for overhead ("S1", count, address, checksum and carriage-return) add up to 75 characters for every 32 bytes of code.Message Edited by rocco on 03-30-200605:38 PM