Re: memory fence instruction




"Bart van der Werf" <bluelive@xxxxxxxxx> schreef in bericht
news:458e70c8$1@xxxxxxxxxxxxxxxxxxxxxxxxx
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 ?


.



Relevant Pages

  • Re: About speed
    ... about 10,000,000 hands per second and when you dont use inlining the ... In delphi it is evaluating 11,500,000 hands ... - irrelevant of whether or not you used the 'inline' directive. ... SevenCardEvaluateInlinedLabel 18,343,400 hands per second ...
    (borland.public.delphi.non-technical)
  • Re: Investigating MMX instructions in Delphi.
    ... and lets you write inline MMX assembler. ... Delphi if you start doing heavy assembler optimisation is the lack of good ...
    (comp.lang.pascal.delphi.misc)
  • Re: Investigating MMX instructions in Delphi.
    ... >this last one) natively in inline asembler. ... But for older assembler, this ... I thought that Delphi aligned procedures / functions on 16 byte ... >sometimes even higher) by using properly aligned instructions, ...
    (comp.lang.pascal.delphi.misc)
  • Re: Interview: Dale Fuller and Blake Stone on Borland directions
    ... When you look at the Delphi Lexer/Parser generated by ParserBuilder (there are ... I think it's a huge disgrace that Borland hasn't added inline ... I am sure that a competent coder who knows the source ...
    (borland.public.delphi.non-technical)
  • Re: d2006 object/record property bugs
    ... If you can afford to develop it in Delphi, ... Hu, i'm not saying i'm not using classes, all i'm saying is there is more ... been inlined not inlined. ...
    (comp.lang.pascal.delphi.misc)