BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

memory fence instruction

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM
View previous topic :: View next topic  
Author Message
Bart van der Werf
Guest





PostPosted: Sun Dec 24, 2006 6:21 pm    Post subject: memory fence instruction Reply with quote



what instructions can be used to force a memory fence ?
Back to top
Bart van der Werf
Guest





PostPosted: Mon Dec 25, 2006 6:46 pm    Post subject: Re: memory fence instruction Reply with quote



"Bart van der Werf" <bluelive (AT) xs4all (DOT) nl> schreef in bericht
news:458e70c8$1 (AT) newsgroups (DOT) borland.com...
Quote:
what instructions can be used to force a memory fence ?

I guess this should work:

procedure MemoryBarrier; assembler;
asm
lock xor [esp], 0
end;

delphi won't reorder code if it can't inline ?
Back to top
Dennis
Guest





PostPosted: Wed Dec 27, 2006 11:32 pm    Post subject: Re: memory fence instruction Reply with quote



Hi Bart

SFENCE/LFENCE ?

Best regards
Dennis Kjaer Christensen
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.