Mail Archives: djgpp/1999/05/22/05:19:50
> > 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 -