delorie.com/archives/browse.cgi | search |
Date: | Fri, 12 Oct 2001 21:21:48 -0400 |
Message-Id: | <200110130121.f9D1LmY19834@envy.delorie.com> |
From: | DJ Delorie <dj AT delorie DOT com> |
To: | djgpp AT delorie DOT com |
In-reply-to: | <9q8418$23s$00$1@news.t-online.com> (bkausbk@web.de) |
Subject: | Re: extended assembler |
References: | <9q8418$23s$00$1 AT news DOT t-online DOT com> |
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 |
> I want to define a assembler function which set EDX Register with > first argument. Why? > If I do following I got error message "warning: call-clobbered register > used for global register variable" Pretty much *any* function is going to change the value of %edx, so gcc is warning you that explicitly using %edx is asking for trouble. Especially when you create a global %edx register variable, since gcc can't guarantee that it has the right value at all times.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |