{"issue":{"created_at":"2011-01-01T08:00:00Z","state":"open","updated_at":"2011-11-30T21:39:41Z","comments":15,"user":{"gravatar_id":"916bcaf0f8dbf1a198589096b293c603","id":96524,"url":"https://api.github.com/users/jkeenan","avatar_url":"https://secure.gravatar.com/avatar/916bcaf0f8dbf1a198589096b293c603?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jkeenan"},"body":"This ticket was created in [http://rt.perl.org/rt3/Ticket/Display.html?id=41497 RT #41497] by Paul T Cochrane in February 2007.  I am moving it into the Trac system to raise its visibility.  I believe it could be moved toward resolution by someone -- a newcomer, perhaps -- who was willing to spend some time doing Internet searching on the profiling options of various C compilers.\nOriginal description:[[BR]]\r\n'''The profiling options used in config/init/defaults.pm are specific to gcc. This should probably be specified in the relevant hints file.'''\r\n\r\nThe relevant code in ''config/init/defaults.pm'' is this:\r\n```\r\n    if ( $conf->options->get('profile') ) {\r\n        $conf->data->set(\r\n            cc_debug => \" -pg \",\r\n            ld_debug => \" -pg \",\r\n        );\r\n    }\r\n```\r\nIn the original ticket, Infinoid subsequently commented:  ''This flag convinces gcc to generate profiling code specifically for\r\nthe GNU profiler, `gprof`. I find it *extremely* unlikely that this\r\nflag would be available and/or mean the same thing for other compilers ...''\r\n\r\nIn addition, Andy Dougherty commented:  ''[These options] are gcc-specific. A plain `-p` is common on Unix systems, but `-pg` is gcc-specific. For example, with Sun's C compiler, `-xpg` would be\r\nthe equivalent flag. (Though Sun's C compiler also has other profile\r\noptions selected by `-xprofile` ...)''\r\n\r\nCould someone research profiling options on a variety of C compilers, including the principal C compilers for Windows?\r\n\r\nThank you very much.[[BR]]\r\nkid51\r\n\r\nOriginally http://trac.parrot.org/parrot/ticket/855","assignee":null,"id":2407622,"labels":[],"number":465,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"config/init/defaults.pm:  Profiling options are too specific to GCC","html_url":"https://github.com/petdance/scratch/issues/465","closed_at":null,"url":"https://api.github.com/repos/petdance/scratch/issues/465","milestone":null},"action":"created","comment":{"created_at":"2010-11-03T08:53:02Z","updated_at":"2011-11-30T21:39:40Z","user":{"gravatar_id":"916bcaf0f8dbf1a198589096b293c603","id":96524,"url":"https://api.github.com/users/jkeenan","avatar_url":"https://secure.gravatar.com/avatar/916bcaf0f8dbf1a198589096b293c603?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jkeenan"},"body":"<p>\nFor the record, here's what the GCC docs have to say about this (excerpts):\n</p>\n<pre class=\"wiki\">-g\nProduce debugging information in the operating system's native\nformat (stabs, COFF, XCOFF, or DWARF 2). GDB can work with this\ndebugging information.\n-p\nGenerate extra code to write profile information suitable for\nthe analysis program prof.\n-pg\nGenerate extra code to write profile information suitable for\nthe analysis program gprof.\n</pre><p>\nSources: <a class=\"ext-link\" href=\"http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html\"><span class=\"icon\"> </span>gcc Debugging Options</a>.\n</p>","id":2966843,"url":"https://api.github.com/repos/petdance/scratch/issues/comments/2966843"}}