Re: eliminate dead stores across functions

2018-03-06 Thread William Cohen
On 03/06/2018 09:28 AM, Richard Biener wrote: > On Tue, Mar 6, 2018 at 1:00 PM, Prathamesh Kulkarni > wrote: >> Hi, >> For the following test-case, >> >> int a; >> >> __attribute__((noinline)) >> static void foo() >> { >> a = 3; >> } >> >> int main() >> { >> a = 4; >> foo (); >> return a;

Re: how to tweak x86 code generation to instrument certain opcodes with CC trap?

2015-10-23 Thread William Cohen
ht still be suitable. http://www.dyninst.org/sites/default/files/downloads/w2009/legendre-binrewriter.pdf -Will > > On Fri, Oct 23, 2015 at 10:32 AM, William Cohen wrote: >> On 10/23/2015 01:37 AM, Yasser Shalabi wrote: >>> Hello, >>> >>> I am new to the GCC

Re: how to tweak x86 code generation to instrument certain opcodes with CC trap?

2015-10-23 Thread William Cohen
On 10/23/2015 01:37 AM, Yasser Shalabi wrote: > Hello, > > I am new to the GCC code. I want to make a simple modification to the > back end. I want to add a debug exception (int3) to be generated > before any instance of certain x86 instructions. > > I tried to modify gcc/config/i386/i386.md by a

Re: Adding Profiling support - GCC 4.1.1

2007-03-26 Thread William Cohen
Jim Wilson wrote: Rohit Arul Raj wrote: 1. The function mcount: While building with native gcc, the mcount function is defined in glibc. Is the same mcount function available in newlib? or is it that we have to define it in our back-end as SPARC does (gmon-sol2.c). Did you try looking at newli

Re: for getting profiling times in millsecond resolution.

2006-03-22 Thread William Cohen
jayaraj wrote: Hi, I want to get the profiling data of an application in linux. Now I am using -pg options of gcc for generating the profile data. then used gprof for generating profiles. Here I am getting only in terms of seconds. But I want in millisecond resolution. can anybody help me. Tha