🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

5 total messages Started by edward j. zix Fri, 09 Oct 1992 23:12
GCC Symbol Demangler Wanted
#415
Author: edward j. zix
Date: Fri, 09 Oct 1992 23:12
4 lines
577 bytes
Is there a Name demangler available on the net?
It is kind of a pain to do it by hand.
i.e. Given something like "Q25Outer5Inner", return "Outer::Inner"
Re: GCC Symbol Demangler Wanted
#416
Author: Jason Merrill
Date: Sat, 10 Oct 1992 06:57
56 lines
1560 bytes
In article <22836@galaxy.ucr.edu> ezix@troi.ucr.edu (edward j. zix) writes:
>
>Is there a Name demangler available on the net?
>It is kind of a pain to do it by hand.
>i.e. Given something like "Q25Outer5Inner", return "Outer::Inner"

Try cp-dem.c from the gcc distribution.  You need to write your own
front-end, or use mine:

#ifdef STANDALONE
static void
fatal (s, a1, a2)
     char *s;
{
  fprintf (stderr, "demangle: ");
  fprintf (stderr, s, a1, a2);
  fprintf (stderr, "\n");
  exit (1);
}

char *
xmalloc (size)
     int size;
{
  register char *val = (char *) malloc (size);

  if (val == 0)
    fatal ("virtual memory exhausted");
  return val;
}

char *
xrealloc (ptr, size)
     char *ptr;
     int size;
{
  char *result = (char *) realloc (ptr, size);
  if (!result)
    fatal ("virtual memory exhausted");
  return result;
}

main(argc, argv)
     int argc;
     char **argv;
{
    char* s;
    while(--argc) {
	s = cplus_demangle(*++argv);
	if (s) {
	    puts(s);
	    free(s);
	}
    }
}
#endif
Re: GCC Symbol Demangler Wanted
#417
Author: Joe Buck
Date: Sat, 10 Oct 1992 21:56
13 lines
1023 bytes
In article <22836@galaxy.ucr.edu> ezix@troi.ucr.edu (edward j. zix) writes:
>>Is there a Name demangler available on the net?
>>It is kind of a pain to do it by hand.
>>i.e. Given something like "Q25Outer5Inner", return "Outer::Inner"

In article <1992Oct10.065727.27305@muddcs.claremont.edu> jason@jarthur.claremont.edu (Jason Merrill) writes:
>Try cp-dem.c from the gcc distribution.  You need to write your own
>front-end, or use mine:

You could also use the "demangle" program included in the gdb-4.6
distribution.
--
Joe Buck	jbuck@ohm.berkeley.edu
Re: GCC Symbol Demangler Wanted
#418
Author: Joe Bush
Date: Sun, 11 Oct 1992 21:30
6 lines
757 bytes
Hello,

	Anyone know about the likelyhood of getting some version of TI's (or GE's simplified
version) of COOL compiled with gcc2.2.2?

	- Joe
Re: COOL
#422
Author: Brendan Kehoe
Date: Tue, 13 Oct 1992 17:46
18 lines
1287 bytes
In article <1992Oct11.213038.398@sunova.ssc.gov> bush@fremont.ssc.gov
(Joe Bush) writes:

   Anyone know about the likelyhood of getting some version of TI's
   (or GE's simplified version) of COOL compiled with gcc2.2.2?

You need a special pre-processor for it; I tried and gave up.

It does wild things like this:

	#define foo##bar baz

and expects foobar to be a defined identifier.  Yow.

--
Brendan Kehoe                                               brendan@cygnus.com
Cygnus Support, Palo Alto, CA                                  +1 415 322 3811
                                                 Re-elect Clinton/Gore in '96!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads