Re: Fastest IA32 nops - single- and multi-byte



"James Harris" <james.harris.1@xxxxxxxxxxxxxx> wrote in message
news:c3f2dd02-3fbb-4843-b2ff-563c237e1ff1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
That could be useful. I've copied the full source I was using to a
temporary page

http://codewiki.wikispaces.com/time-it.nasm

If you have a copy of Windows you should be able to copy, build and
run it as it stands.

Despite having both Windows (Win98SE) and a recent version of NASM, I seem
to be missing whatever provides "win32n.inc"...

And, are the Win32 functions valid for Win98SE or just newer
Win2k/NT/XP/Vista? See, you still haven't stated your test platform OS...

Regarding your comments: I've tried timing code with three leading
CPUIDs but found that recommendation to be unhelpful. Sometimes the
third CPUID was markedly slower than the second one. To deal with the
CPUID variability and all the other sources of jitter that you mention
I have seen better (more consistent) results by running short timing
code such as the above a number of times. The 'true' cycle count soon
appears.

Well, I think the best platform would be a DOS .com or a floppy bootsector.
You can disable all sources of "jitter" except a few. The dual core RDTSC
errors were supposed to be fixed by using RDTSCP instructin. However, the
AMD indicates that RDTSCP isn't completely accurate since it's affected by
power management events which causes TSC drift. And, apparently there is no
fix for Efficeon cpu's which don't throttle the TSC properly.

In your later post:

By the way, if you want to edit the code you may want to convert
spaces to tabs.

Que? No, no, not, never, ever... I use my personal code detab.c, or
detab8.c, or text.c to convert tab's to spaces. Tab's don't work
consistently across text editors and cause loss of code indentation. Most
text editors won't allow you to search for "whitespace" that contains tab's.
I hate them. For C code, excluding the spaces used for the indentation, I
prefer no spaces, or a single space. It makes searching for keywords,
operators, and syntax much easier. Think about trying to find "if(sts="
when you have ten different spacings, possibly including tab's, between the
"if" and "(sts="... Horrid!


Rod Pemberton


.



Relevant Pages

  • Re: Fastest IA32 nops - single- and multi-byte
    ... Despite having both Windows and a recent version of NASM, ... CPUID variability and all the other sources of jitter that you mention ... consistently across text editors and cause loss of code indentation. ... as I hate typing long runs of spaces to line up columns. ...
    (alt.lang.asm)
  • Re: Sudden View - Take Two
    ... > Other editors do many things in included in Sudden View, ... subtley is an important concept. ... > manage word-wrap and does not export if you copy to the Windows ... the view bar. ...
    (comp.editors)
  • Re: RW error (was: Discussions of COBOL philospphy
    ... which runs on Windows and accesses the Unix file ... If the shop is running Samba or NFS, there are many more Windows editors ... Samba and NFS mount the Unix file system on a Windows driver letter. ...
    (comp.lang.cobol)
  • Re: Comfortable editor for beginners under Windows?
    ... I've been aksed at my university to give an introductory course on LaTeX for people without any knowledge of programming whatsoever. ... I use a Mac myself and I used to be under Linux before that, but for the course, I will be teaching on Windows machines to make it easier for the participants. ... I'm pretty sure I'll use Miktex, but I do not have any experience with editors, and no easy access to a Windows machine at the moment. ... The editor in Texniccenter is much easier to use if you're used to point-and-click computing than something like emacs or vi. ...
    (comp.text.tex)
  • Re: Instead of freebsd.com, why not...
    ... many file formats are supported only by the applications for which they ... the more likely it is that only Windows will support them ... WHY would I switch to 100% UNIX, when Windows works perfectly on the ... they really do use text editors. ...
    (freebsd-questions)