From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,467cb68dd8bf70c9,start X-Google-Attributes: gidfee84,public X-Google-Thread: 10ba33,467cb68dd8bf70c9,start X-Google-Attributes: gid10ba33,public From: lupu-sax@typhoon.harvard.edu (Adam S. Lupu-Sax) Subject: Using cord with g++ Date: 1997/09/09 Message-ID: #1/1 X-Deja-AN: 271058785 Sender: lupu-sax@typhoon.harvard.edu Organization: Harvard University Physics Newsgroups: comp.unix.osf.osf1,gnu.g++.help 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 http://monsoon.harvard.edu/~lupu-sax PGP public key: http://monsoon.harvard.edu/~lupu-sax/key.asc