Date: Tue, 8 May 2001 10:14:34 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Michiel de Bondt cc: djgpp AT delorie DOT com Subject: Re: how to use inline push and pop In-Reply-To: <3AF6B070.D006EAC1@sci.kun.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 7 May 2001, Michiel de Bondt wrote: > I made some macro's to push and pop registers, but it did not work when > I optimized the code. It might be a good idea to explain why did you need that in the first place. If you write full-blown assembly code that calls other functions, simply make an assembly module instead of doing it in inline assembly. Going inline is only justified for short code sequences, and manipulating the stack (with pushall, on top of that) has overhead which can easily nullify any advantages.