Re: count2.asm




"¬a\/b" asked:

| >[The compiler can never win. If the compiler produces faster code, we
| >use that. If the human produces faster code, we use that. The best the
| >compiler can do is break even.]

| Is it possible that one can do some C code that assembly people can
| not do faster? (>0.1%) (i think yes, because i have seen that code)

A few C-coders cheat their tool with ASM-inline and _intrisinc code,
here the timing may be almost identical (depends on programmers skills).
But in general, a standard written C-source compiled program will never
ever beat or become equal to 'well written' ASM-code.

Using ASM doesn't automatically mean someone knows how to program :)

We had this comparision already here, my code was 50 % shorter and
2 times faster until the HLL-coder starts with above mentioned tricks,
then the timing became more close.

| LF CR are 10 13?

Yes.

BS 08h
TAB 09h
LF 0Ah
CR 0Dh
BTAB 0Fh

other standard text-format controls exist (<20h),
but are usually not used in normal text files.

__
wolfgang

.



Relevant Pages

  • Re: count2.asm
    ... If the compiler produces faster code, ... If the human produces faster code, ... >counting 'y's as either vowels or consonants - you've removed it from ... Easy to fix. ...
    (alt.lang.asm)
  • Re: Danny Thrope has left Borland?
    ... > really the case anymore (FreePascal produces faster code and supports tons ... > me to the conclusion that the compiler "team" doesn't have enough resources. ... The more important point is imo why Danny left Borland? ... Did the Delphi ...
    (borland.public.delphi.non-technical)
  • Re: count2.asm
    ... If the compiler produces faster code, ... You seem to have solved the "Y question" by not counting 'y's as either vowels or consonants - you've removed it from the "vowel strings", but didn't add it to the ... I don't have LF's CR's and tabs in my "punctuation string" - I *did* count them as punctuation in the ...
    (alt.lang.asm)
  • Re: Apple should buy SUN.
    ... Try building openssl on Solaris 10/x86 with both compilers - you'll ... (This is the Studio 10 compiler, ... This may just be due to better tuned compiler settings on the gcc side. ... I'd really like to see how to get cc to produce the faster code that it ...
    (comp.unix.solaris)
  • Re: C90 penetration
    ... compilers have not needed assembler for speed critical ... Consider these application timing constraints: ... The first constraint can be verified by running test code and timing. ... However, if a compiler option is changed, will it still be valid? ...
    (comp.lang.c)