Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: lupu-sax@typhoon.harvard.edu (Adam S. Lupu-Sax)
Subject: Using cord with g++
Date: 1997/09/09	[thread overview]
Message-ID: <xolvi0a4dsw.fsf@typhoon.harvard.edu> (raw)




	Hello.  I am trying to use Digital Unix "cord" a procedure
rearrangement tool to maximize cache efficiency.  cord's rearrangement
instructions are generated by the code profiler, "prof" and then
translated by a program called "ftoc"

	The profiling goes fine (prof -pixie -feedback prog.feedback
prog) but then ftoc chokes on with

> ftoc prog.feedback
Length of padded string is unreasonably large (1051)


	I am compiling with g++ (2.7.2) on Digital Unix 4.0B
(Alphastation 500/500).  

	As far as I can tell, the problem is the long names that g++
gives to functions.  This seems to bemore than a mangling problem.
I've noticed this before but for profiling I solved it by writing a
filter I could put in before c++filt and get reasonable output.
However, that won't work here since I don't know the format of the
.feedback file.  

	Can anyone explain why g++ gives names like:

tdiff_s__FG7timevalT0:F13.tdiff_us__FG7timevalT0:F13.__ls__FR7ostreamRC\
5Clock:F53.out_of_memory__Fv:F16.fatal_error__FPCc\
:F16.inside__FG10coordinateT0d:F1.main

that's without c++filt but that wouldn't fix the problem.  The
function in question is simply "main" but every other function in the
file (translation unit) gets attached to its name.

	This improves if I put every called function into a library
but some functions stillhave these long names and that appears to be
enough to confuse ftoc.

	Any help would be greatly appreciated.


							-Adam Lupu-Sax
-- 
____________________________________________________________
Adam Lupu-Sax <lupu-sax@typhoon.harvard.edu>
http://monsoon.harvard.edu/~lupu-sax
PGP public key: http://monsoon.harvard.edu/~lupu-sax/key.asc



                 reply	other threads:[~1997-09-09  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox