LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2012, 03:01 AM   #1
prateek.shetty
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Rep: Reputation: Disabled
Question Memory fencing at compiler level and hardware level


Hi,

Quote:
asm volatile ("" : : : "memory")
I know that this provides a compiler level memory fence and processor can still do reordering when this is used.

Is there anyway I can achieve both compiler level fencing and processor level fencing with a similar instruction?

I came across,
Quote:
asm volatile("sfence" : : : "memory")
What does this do? Does it provide only compiler level store fencing?

Any inputs on this will be very helpful.

Thanks

Last edited by prateek.shetty; 08-14-2012 at 03:02 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which is the entry level and more basic level Linux certifications? jeancollins72 Linux - Certification 3 12-26-2008 06:14 AM
Find - battery life, CPU Usage,Wireless Signal Level , Congestion Level md_imranullah Programming 2 05-20-2008 09:45 PM
What constitutes a level 3 or higher danger level with psad? abefroman Linux - Software 2 04-16-2008 09:18 AM
emacs in run level 3 then switch to X (level 7) then back to level 3 dsoliver Slackware 3 09-01-2006 04:31 AM
convert packet level pcap captures to flow level data hedpe Linux - Networking 1 07-27-2006 03:56 PM


All times are GMT -5. The time now is 10:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration