mirror of
https://github.com/cc65/cc65.git
synced 2025-02-05 04:37:23 +00:00
Output statistics if -v given
git-svn-id: svn://svn.cc65.org/cc65/trunk@1944 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
79a2185c42
commit
5dbc41b0bb
@ -322,13 +322,16 @@ static void Convert (void)
|
||||
if (D->Header.mode != O65_MODE_CC65) {
|
||||
Error ("Cannot convert o65 files of this type");
|
||||
}
|
||||
|
||||
printf ("Textsize: %lu\n", D->Header.tlen);
|
||||
printf ("Datasize: %lu\n", D->Header.dlen);
|
||||
printf ("Imports: %u\n", CollCount (&D->Imports));
|
||||
printf ("Exports: %u\n", CollCount (&D->Exports));
|
||||
printf ("Textrelocs: %u\n", CollCount (&D->TextReloc));
|
||||
printf ("Datarelocs: %u\n", CollCount (&D->DataReloc));
|
||||
|
||||
/* Output statistics */
|
||||
Print (stdout, 1, "Size of text segment: %5lu\n", D->Header.tlen);
|
||||
Print (stdout, 1, "Size of data segment: %5lu\n", D->Header.dlen);
|
||||
Print (stdout, 1, "Size of bss segment: %5lu\n", D->Header.blen);
|
||||
Print (stdout, 1, "Size of zeropage segment: %5lu\n", D->Header.zlen);
|
||||
Print (stdout, 1, "Number of imports: %5u\n", CollCount (&D->Imports));
|
||||
Print (stdout, 1, "Number of exports: %5u\n", CollCount (&D->Exports));
|
||||
Print (stdout, 1, "Number of text segment relocations: %5u\n", CollCount (&D->TextReloc));
|
||||
Print (stdout, 1, "Number of data segment relocations: %5u\n", CollCount (&D->DataReloc));
|
||||
|
||||
/* Open the output file */
|
||||
F = fopen (OutFilename, "wb");
|
||||
|
Loading…
x
Reference in New Issue
Block a user