Sorry, I meant pass it byval with a macro. On 2009-12-30, at 12:49 PM, Jose Catena wrote:
> eax then. > A pointer to the pointer won't help, only make the problem worse needing an > additional indirection. > AFIK, there is no way to tell the inline assembler how to do it correctly in > a single instruction, we need to have the pointer loaded in a register. A > fastcall will have the parameter in a register already, but won't be better > than an inline. > There is no point in saving a instruction here anyway, loading/saving the > gdtr is very rare. > But if you know a way to have a single instruction in an inline to work as > intended tell us how plz. > > Jose Catena > DIGIWAVES S.L. > > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of Alex Ionescu > Sent: Wednesday, 30 December, 2009 18:08 > To: ReactOS Development List > Subject: Re: [ros-dev] MSVC > > I recommend changing the convention such that Descriptor is a pointer to the > pointer -- this way the functions can remain one-liners and not introduce > register side-effects (especially since you're choosing ebx -- trashing a > nonvolatile). > > > > _______________________________________________ > Ros-dev mailing list > [email protected] > http://www.reactos.org/mailman/listinfo/ros-dev Best regards, Alex Ionescu _______________________________________________ Ros-dev mailing list [email protected] http://www.reactos.org/mailman/listinfo/ros-dev
