Re: Some Problems about gcc 4.8.2 on cygwin

2014-03-14 Thread Marco Atzeri
On 14/03/2014 15:00, rexdf Rexdf wrote: please read http://en.wikipedia.org/wiki/Posting_style in this mailing list we use "Bottom-posting" and "Trimming" My question is : 1. On archlinux gcc 4.8.2, `gcc curses_test.c $(pkg-config --libs --cflags ncurses) -o curses_test` and `gcc $(pkg-confi

Re: Some Problems about gcc 4.8.2 on cygwin

2014-03-14 Thread rexdf Rexdf
If you use -O3 or -O2, then the loop is optimed to nothing. Because the a++ never is used. My question is : 1. On archlinux gcc 4.8.2, `gcc curses_test.c $(pkg-config --libs --cflags ncurses) -o curses_test` and `gcc $(pkg-config --libs --cflags ncurses) curses_test.c -o curses_test` works. On cyg

Re: Some Problems about gcc 4.8.2 on cygwin

2014-03-14 Thread Tim Prince
On 3/14/2014 8:42 AM, rexdf Rexdf wrote: 2.It's about OpenMP Is there a cygwin related question here? Questions on OpenMP and clock() might be tolerated on gcc-help. Advice on how to make meaningful benchmarks is definitely off topic. With cygwin g++ 4.9 at -O or -O3 on win8.1 I get time: 0

Re: Some Problems about gcc 4.8.2 on cygwin

2014-03-14 Thread Marco Atzeri
On 14/03/2014 13:42, rexdf Rexdf wrote: 1.the following code: #include #include int main() { initscr(); move(0, 0); addstr("hello, world\n"); refresh(); sleep(5); endwin(); return 0; } The following is my shell command: $ pkg-config --libs --cflags ncurses -I/us

Some Problems about gcc 4.8.2 on cygwin

2014-03-14 Thread rexdf Rexdf
1.the following code: #include #include int main() { initscr(); move(0, 0); addstr("hello, world\n"); refresh(); sleep(5); endwin(); return 0; } The following is my shell command: $ pkg-config --libs --cflags ncurses -I/usr/include/ncurses -lncurses $ gcc $(pkg-config --