Re: Perl_foo() vs foo() etc

2001-04-12 Thread Hong Zhang
>IIRC, ISO C says you cannot have /^_[A-Z_][A-Za-z_0-9]*$/. That's reserved >for the standard. If you consider our prefix is "_Perl_" not just "_", we will be pretty safe. There are just not many people follow the standard anyway :-) Hong

Re: Perl_foo() vs foo() etc

2001-04-12 Thread Brent Dax
Dan Sugalski wrote on 4/11/01 13.38: >At 03:09 PM 4/11/2001 >-0400, John Siracusa wrote: >>On 4/11/01 10:55 AM, Dan >Sugalski wrote: >> > It does fix the link issues, >though. perl6.so won't ever >have an >> > unqualified function in >it--they'll all have either a >Perl_ or _Perl_ >> > prefix on

Re: Just in case you were wondering if alignment matters...

2001-04-12 Thread Uri Guttman
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: DS> The only difference between the aligned and unaligned runs is the DS> pointer to the aligned data is on an 8-byte boundary, and the DS> unaligned data is the aligned pointer plus 1. i am assuming this is an alpha (which i got to kn

Re: Perl_foo() vs foo() etc

2001-04-12 Thread Dan Sugalski
At 12:16 AM 4/13/2001 +0200, Kai Henningsen wrote: >[EMAIL PROTECTED] (Dan Sugalski) wrote on 11.04.01 in ><[EMAIL PROTECTED]>: > > > *) All private routines have #defines to give them a _Perl_ prefix > > *) All private data have #defines to give them a _PL_ prefix > >IIRC, ISO C says you cannot

Re: Just in case you were wondering if alignment matters...

2001-04-12 Thread Dan Sugalski
At 12:15 AM 4/13/2001 +0200, Kai Henningsen wrote: >[EMAIL PROTECTED] (Dan Sugalski) wrote on 12.04.01 in ><[EMAIL PROTECTED]>: > > > (No, I don't know why unaligned access to 8-bit data is faster, but there > > you go) > >How *do* you unalign 8-bit data?! (Must... resist... straight... line...

Re: Perl_foo() vs foo() etc

2001-04-12 Thread Kai Henningsen
[EMAIL PROTECTED] (Dan Sugalski) wrote on 11.04.01 in <[EMAIL PROTECTED]>: > *) All private routines have #defines to give them a _Perl_ prefix > *) All private data have #defines to give them a _PL_ prefix IIRC, ISO C says you cannot have /^_[A-Z_][A-Za-z_0-9]*$/. That's reserved for the st

Re: Just in case you were wondering if alignment matters...

2001-04-12 Thread Kai Henningsen
[EMAIL PROTECTED] (Dan Sugalski) wrote on 12.04.01 in <[EMAIL PROTECTED]>: > (No, I don't know why unaligned access to 8-bit data is faster, but there > you go) How *do* you unalign 8-bit data?! MfG Kai

Just in case you were wondering if alignment matters...

2001-04-12 Thread Dan Sugalski
It does. I ran a test here earlier today on the cost of mis-aligned data access, and I figured the results would be of interest to folks in general. A few caveats--this test was run on a lightly loaded Compaq TurboLaser with 6 700MHz EV6 processors and 16G of memory. There was no swapping, and