X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Goh, Yong Kwang" Newsgroups: comp.os.msdos.djgpp Subject: Drawbacks with code optimization? Date: Fri, 19 Apr 2002 16:38:08 +0800 Organization: Singapore Telecommunications Ltd Lines: 22 Message-ID: NNTP-Posting-Host: tns03306.singnet.com.sg X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Any drawbacks with turning on optimization when generating a production copy for distribution for usage? Is there a possibility that the compiler may mis-interprete the original program logic and rearrange the codes such that the program doesn't work as expected with optimization turned on, even though the program source is clearly OK? How do we determine the level of optimization that is appropriate or suitable for a program, apart from experimentation? -O1, -O2 or -O3? -- Yong-Kwang Goh Singapore gohyongkwang AT hotmail DOT com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.344 / Virus Database: 191 - Release Date: 4/2/02