* sim-utils.c (sim_add_commas): New function.

* sim-basics.h (sim_add_commas): Add prototype.
	* cgen-scache.c (scache_print_profile): Print commas in numbers.
	* sim-profile.c (COMMAS): New macro.
	(print_*): Use it to print commas in numbers.
This commit is contained in:
David Edelsohn
1997-05-02 00:32:05 +00:00
parent 3e324f89cd
commit 2317a49939
5 changed files with 137 additions and 33 deletions

View File

@@ -64,6 +64,9 @@ void *zalloc (unsigned long size);
void zfree(void*);
/* Turn VALUE into a string with commas. */
char *sim_add_commas (char *, int, unsigned long);
/* Utilities for elapsed time reporting. */
/* Opaque type, known only inside sim_elapsed_time_foo fns. */
@@ -114,8 +117,11 @@ typedef enum _attach_type {
#include "sim-config.h"
#include "sim-base.h"
#include "sim-module.h"
#include "sim-trace.h"
#include "sim-profile.h"
#include "sim-model.h"
#include "sim-base.h"
#include "sim-inline.h"