Re: Char shifts promoted to int. Why?

2006-12-18 Thread Michael Gong
The operand of the shift operator is of type unsigned int. "x <<= c" is exactly the same as "((int)x) << c" It doesn't matter whether the promotion is explicit or implicit, the semantics are the same. According to C99, the operand of the shift operator should be "integer type", which include

Re: Inserting profiling function calls

2007-02-09 Thread Michael Gong
Hi, Patrice, I don't know about inserting call at the basic block level, but I am quite sure inserting calls at the function level could be done by aspect-oriented-programming (AOP). For example, we used our project, AspectC compiler (www.aspectc.net), to weave in following aspect into gcc,

Re: Inserting profiling function calls

2007-02-10 Thread Michael Gong
- Original Message - From: "Frank Ch. Eigler" <[EMAIL PROTECTED]> To: "Michael Gong" <[EMAIL PROTECTED]> Cc: "GERIN Patrice" <[EMAIL PROTECTED]>; "Jan Hubicka" <[EMAIL PROTECTED]>; Sent: Saturday, February 1

ACC Release V 0.5: Get Aspect-oriented through acc!

2007-03-12 Thread Michael Gong
Hi, We are pleased to announce the release of AspeCt-oriented C (ACC) V 0.5, formerly known as AspectC. Besides some new features, the ACC 0.5 release also includes a set of experimental weave adapters that help integrate aspeCts in the build process of large C-based software projects. For m

Gcc extension: have a semicolon after a function definition ??

2006-08-08 Thread Michael Gong
Hi, I am wondering why following program is compiled successfully by gcc ? Please notice there is a ";" after the function definition. Is there a gcc extension for it ? /* foo.c */ int main() { printf("hello world\n"); } ; Thanks. Michael

Re: Gcc extension: have a semicolon after a function definition ??

2006-08-08 Thread Michael Gong
Yes. Gcc gives a warning under -pedantic. gcc -pedantic foo.c foo.c:3: warning: ISO C does not allow extra `;' outside of a function It looks like an old C syntax. Regards, Michael - Original Message - From: "Andrew Pinski" <[EMAIL PROTECTED]> To: &

Re: preprocessing question

2006-09-25 Thread Michael Gong
One explanation could be: - Original Message - From: "Jan Beulich" <[EMAIL PROTECTED]> To: Sent: Monday, September 25, 2006 11:23 AM Subject: preprocessing question Can anyone set me strait on why, in the following code fragment int x(unsigned); struct alt_x { unsigned val; }; #d

Re: preprocessing question

2006-09-25 Thread Michael Gong
Yes. You are right. - Original Message - From: "Andreas Schwab" <[EMAIL PROTECTED]> To: "Michael Gong" <[EMAIL PROTECTED]> Cc: "Jan Beulich" <[EMAIL PROTECTED]>; Sent: Monday, September 25, 2006 12:08 PM Subject: Re: preprocessing quest

AspeCt-oriented C (ACC) Release V 0.6

2007-05-30 Thread Michael Gong
Hi, We are pleased to announce the release of AspeCt-oriented C (ACC) V 0.6. The ACC 0.6 release includes some experimental features and a new script "tacc" for automatically integrating aspect-compilation in building large C-based software projects. For more details and download, please vis