delorie.com/archives/browse.cgi | search |
Date: | Tue, 8 May 2001 10:14:34 +0300 (IDT) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | Michiel de Bondt <michielb AT sci DOT kun DOT nl> |
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: | <Pine.SUN.3.91.1010508101350.3965F-100000@is> |
MIME-Version: | 1.0 |
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 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |