www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/22/05:19:50

Message-ID: <3743B373.43ACED53@go.ro>
Date: Thu, 20 May 1999 10:02:11 +0300
From: Radu Georgescu aka skoola <skoola AT go DOT ro>
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: problem with extended inline asm
References: <37394A06 DOT BA8BBA94 AT magix DOT com DOT sg> <373B38B0 DOT 41BCDF77 AT go DOT ro> <373E296B DOT F468B13 AT unb DOT ca> <373CF61B DOT 948F13AD AT go DOT ro> <3740A79B DOT 757A3035 AT unb DOT ca>
Reply-To: djgpp AT delorie DOT com

> > the static and the automatic variables are located in memory one next to
> > another, if they are declared so, but i think the order is  not the same. do you
> > have a better idea?
>
>     Just load the address of each variable separately.  That way, if the compiler
> decides to allocate the variables differently (maybe to optimize stuff with data
> boundries) your code won't break.

in this case you should add this variables to the parameter list, and the goal was to
reduce the number of parameters below 10. one good ideea is to group the variables in
a struct, this way you will be sure the compiler allocates the variables one after
another... what do you think?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019