Message-ID: <3604DEB1.611F33DF@mailexcite.com> Date: Sun, 20 Sep 1998 06:53:38 -0400 From: Doug Gale MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: -O3 and -O2 breaks my NASM code References: <3QXblU$QOw AT titan DOT cc DOT ntu DOT edu DOT tw> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: oshawappp15.idirect.com Organization: "Usenet User" Lines: 18 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 阿哲 wrote: > Maybe you need to push all the registers you will contaminate > > at the start of the assembly function code, and pop them before > > that function returns. > > -- > ※ Origin: 程式設計樂園 ◆ From: titan.ee.ntu.edu.tw It's not necessary to push ALL registers that are modified. Just pushing ebx, ebp, esi, edi would be sufficient. eax, ecx, and edx are allowed to be modified.