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

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

10 views
Skip to first unread message

Ramine

unread,
Mar 19, 2017, 10:30:26 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 ON}

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