Re: Optimizing Static Variable Layout




Betov wrote:
> randyhyde@xxxxxxxxxxxxx écrivait news:1114614885.745323.91970
> @o13g2000cwo.googlegroups.com:
>
> > It *does* come as a surprise to people who want to control the
> > placement of variables in RosAsm. If someone types:
> >
> > [a:B$ 1]
> > [b:B$ 2]
> >
> > They probably wouldn't expect these two declarations to consume
eight
> > bytes in their static data's address space.
>
> I do not think we have any user with an IQ low enough
> for not writing:
>
> [a:B$ 1
> b:B$ 2]
>
> :)

Unless the two lines are generated with two separate macros. Macros
rarely have high IQs. The first macro would need to communicate to the
second that the declaration is unfinished.

--
Regards
Alex McDonald

.



Relevant Pages

  • Re: Noob to C++, trying to get syntax, etc.
    ... or they can move declarations to separate files. ... The console stream object, cout, passes into greetby reference. ... When templates and macros call operator<<, ... C++ macros provide some important features above the level of the actual ...
    (comp.lang.cpp)
  • Re: Declarations variables, Dim, some guidance please
    ... My uses of 'declared' vars in most cases, fall into all of the categories ... declared: dim PressEnter as string ... it's kinda a good thing for me that other macros ... >> variables in Declarations. ...
    (microsoft.public.excel.programming)
  • RE: Declarations variables, Dim, some guidance please
    ... I have a sub called zRM_Values which is called at the begining of larger ... declared: dim PressEnter as string ... it's kinda a good thing for me that other macros ... > Good coding practice is to use global or module level variable declarations ...
    (microsoft.public.excel.programming)
  • Re: Declarations variables, Dim, some guidance please
    ... My uses of 'declared' vars in most cases, fall into all of the categories ... declared: dim PressEnter as string ... it's kinda a good thing for me that other macros ... > placing in Declarations or a procedure. ...
    (microsoft.public.excel.programming)
  • The Case Against RosAsm (#9)
    ... RosAsm Doesn't Do Structures ... Some bad Assemblers have a "STRUCT" KeyWord performing hidden Declarations ... What is effectively done by the Assembler would be expressed, ... the right Edit Control gives you the Structure Equates translation. ...
    (alt.lang.asm)