about unroll loops

Ö£¬B taurus-zheng@163.com
Fri Nov 29 06:09:00 GMT 2002


   I am a new user of gcc.
   I have written a small code loop.c like this:
main()
{
	int a[16];
	int i;
	for(i=0;i<16;i++)
	   a[i]=3;
	return;
}
   I wanted to unroll the loop, so I compile it use the command 
"gcc -unroll-all-loops -S loop.c", then I look up the loop.s,
but the loop is not unroolled. Please tell me the reason.
Thank you. 


=============================================================
Ïã¸Û˧¸ç±¾µØÃÀüÓëÄã½»ÓÑÔ¼»á-ËÙÅäÁªÒê Ê¡¸ÛÄÐŮʥµ®ÇãÇéÒ¹ http://dating.163.com/
ÍøÒ×ÅÄÂôվʱÉÐ×¨Çø£¬¸ÐÊܶ¼ÊеÄ÷ÈÁ¦£¡                     http://auctions.163.com/zhuanqu/fashion/
Ãâ·ÑÓÊÏ佡¿µÉ±¶¾´óÐж¯£¡                                 http://popme.163.com/freemail/index.html



More information about the Gcc mailing list