Coding mov mem <- reg using X86Emit..()

Archana <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.rotor
Message-ID <Pine.LNX.4.44.0306211629520.30508-100000@purana.csa.iisc.ernet.in>
Hi,
 Is there any way one can code mov register to memory location using
the set of Emit functions defined in i386/cgenx86.cpp?
the need arised because when i tried to write the ASM version of a piece
of code in i386/jitinterfacex86.cpp i needed quite a number of
temp-locations since all of them cannot fit into the available number of
registers. There are calls to stores in the code but they use
X86EmitIndexRegStore(..)

thanks & regards
archana

On Fri, 20 Jun 2003, Barry Bond wrote:

> You shouldn't have problems if you add additional thread synchronization
> code.  The suspend/resume code is reasonably robust - it suspends each
> thread, and if the thread is not executing managed code, it immediately
> resumes it and lets the thread run until it re-enters managed code.  As
> long as you don't introduce new locks that need to be acquired by the
> actual suspend/resume code in the EE, you shouldn't see deadlocks.
>
> Be very careful adding new locks into the PAL - if you do, you'll need
> to update the critsec_count in order to avoid PAL-internal deadlocks.
>
> Barry
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> -----Original Message-----
> From: Discussion of the Rotor Shared Source CLI implementation
> [mailto:[email protected]] On Behalf Of Archana
> Sent: Friday, June 20, 2003 4:45 AM
> To: [email protected]
> Subject: [DOTNET-ROTOR] Using posix calls in rotor code
>
> Hi,
>  Can we use Posix calls for thread synchronization in rotor code?
> because
> almost all calls used are the ones that are defined in /pal/unix
> directory. and crucial functions such as suspendEE, restartEE assume
> that
> all the threads are objects of 'class Thread'.
>  to be more specific, if we introduce pthread mutexes/semaphores in the
> code, what precautions should one take to ensure that the gc thread is
> successful in suspending all the threads?
>
> Thanks & regards
> archana
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.