Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Read again i correct

8 views
Skip to first unread message

Ramine

unread,
Mar 19, 2017, 10:32:51 AM3/19/17
to
Hello...


Since Delphi and FreePascal can reorder loads and stores when optimizing.


Here is what i will do:

I will set optimization off in the source code of MLock and AMLock
and the TicketSpinlock with a proportional back-off:


by using this in FreePascal:

{$OPTIMIZATION OFF}

http://www.freepascal.org/docs-html/prog/progsu58.html

and by using this in Delphi:

{$O-}

http://docwiki.embarcadero.com/RADStudio/Seattle/en/Optimization_(Delphi)


This way is easy, so i will updated my projects and C++ projects soon.


That's all,
Amine Moulay Ramdane.
0 new messages