1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-11 05:29:33 +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:
cuz 2003-02-08 16:49:48 +00:00
parent 79a2185c42
commit 5dbc41b0bb

View File

@ -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");