1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-08 06:25:17 +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) { if (D->Header.mode != O65_MODE_CC65) {
Error ("Cannot convert o65 files of this type"); Error ("Cannot convert o65 files of this type");
} }
printf ("Textsize: %lu\n", D->Header.tlen); /* Output statistics */
printf ("Datasize: %lu\n", D->Header.dlen); Print (stdout, 1, "Size of text segment: %5lu\n", D->Header.tlen);
printf ("Imports: %u\n", CollCount (&D->Imports)); Print (stdout, 1, "Size of data segment: %5lu\n", D->Header.dlen);
printf ("Exports: %u\n", CollCount (&D->Exports)); Print (stdout, 1, "Size of bss segment: %5lu\n", D->Header.blen);
printf ("Textrelocs: %u\n", CollCount (&D->TextReloc)); Print (stdout, 1, "Size of zeropage segment: %5lu\n", D->Header.zlen);
printf ("Datarelocs: %u\n", CollCount (&D->DataReloc)); 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 */ /* Open the output file */
F = fopen (OutFilename, "wb"); F = fopen (OutFilename, "wb");