Re: Fastcode CharPosRev B&V 0.6.0



The negative offsets are only use to set base addresses. At no time is
memory outside of that allocated to the string ever referenced.

I am no concerned about needing the $R-. All this means is that the
programmer must take responsibility for range checking instead of the
compiler. The need for R- is very common where performance is the main
criteria (try compiling the RTL with range checking on!).

--
regards,
John

The Fastcode Project:
http://www.fastcodeproject.org/


"Davy Landman" <davy.landman@xxxxxxxxx> wrote in message
news:456b1192@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi John,

Nice idea, but would it be an good idea to read then bytes for the start
of the string?

-4 = size
-8 = refcount...
but -12/10 ?

Looking at the code I can see it will probably be faster..
my code generates to an [esi+eax+$01-$04], while your code will lead to an
[esi + $00-$00].. nice idea :)

allthough too bad the R+ is needed..

Regards,
Davy




.



Relevant Pages

  • Re: Letter to US Sen. Byron Dorgan re unpaid overtime
    ... Big-O notation isn't mathematics per se, it's computer science notation ... "length of the string". ... outrun something compiled and optimized by a good C compiler. ... > either general computing culture or culture outside computing. ...
    (comp.programming)
  • Re: [EGN] Hoisting Loop Invariants (Was: Re: [EGN] Numerical Accuracy)
    ... compiler out there somewhere that did as you claim. ... > the programmer has this knowledge, then the programmer should not use ... >> string in a loop, regardless of the blatant inefficiency of doing so. ...
    (comp.programming)
  • Re: return a string
    ... Here, you're saying to return a character, not a string. ... char * prt_tralha ... since you've allocated new memory for tralha. ... the third compiler error. ...
    (comp.lang.c)
  • Re: How to convert Infix notation to postfix notation
    ... and make all strings const save where the intent ... function whose contract is to change the string. ... the compiler "just" prevents the string ... try to do using the pointer you get. ...
    (comp.lang.c)
  • Re: char *s = "Google"
    ... The compiler may choose to store the string in a region of ... That memory may cause an signal to be raised ...
    (comp.lang.c)