From 5dbc41b0bb7c523061343cff10c4d774cc0626e1 Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 8 Feb 2003 16:49:48 +0000 Subject: [PATCH] Output statistics if -v given git-svn-id: svn://svn.cc65.org/cc65/trunk@1944 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/co65/main.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/co65/main.c b/src/co65/main.c index a206f56d5..74812947b 100644 --- a/src/co65/main.c +++ b/src/co65/main.c @@ -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"); -- 2.39.5