develooper Front page | perl.perl5.porters | Postings from December 2001

RE: Optimizer 0.01

Thread Next
From:
Tels
Date:
December 22, 2001 05:24
Subject:
RE: Optimizer 0.01
Message ID:
perl.perl5.porters-49812@nntp.perl.org
-----BEGIN PGP SIGNED MESSAGE-----

Moin,

On 22-Dec-01 Tels tried to scribble about:
> -----BEGIN PGP SIGNED MESSAGE-----
> Moin Simon,
> 
> I looked at your package to try to write a loop-optimizer, that can
> optimize away empty/static loops.
> 
> Some comments:
[snip since irrelevant for p5p]

te@null:~/perl/optimizer-0.01 > perl Makefile.PL
Writing Makefile for optimizer
te@null:~/perl/optimizer-0.01 > make
/usr/local/bin/perl /usr/local/lib/perl5/5.7.2/ExtUtils/xsubpp  -typemap
/usr/local/lib/perl5/5.7.2/ExtUtils/typemap  optimizer.xs > optimizer.xsc
&& mv optimizer.xsc optimizer.c
Error: 'B::OP' not in typemap in optimizer.xs, line 175
Please specify prototyping behavior for optimizer.xs (see perlxs manual)
make: *** [optimizer.c] Error 1 

perl -V

Summary of my perl5 (revision 5.0 version 7 subversion 2 patch 13832)
configuration:
  Platform:
    osname=linux, osvers=2.2.16, archname=i686-linux
    uname='linux null 2.2.16 #1 wed aug 2 20:22:26 gmt 2000 i686 unknown '
    config_args='-d -Dusedevel'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=define
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include
- -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.2 19991024 (release)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lc -lposix -lcrypt -lutil
    libc=, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Locally applied patches:
        DEVEL13832
  Built under linux
  Compiled at Dec 22 2001 13:48:21
  @INC:
    /usr/local/lib/perl5/5.7.2/i686-linux
    /usr/local/lib/perl5/5.7.2
    /usr/local/lib/perl5/site_perl/5.7.2/i686-linux
    /usr/local/lib/perl5/site_perl/5.7.2
    /usr/local/lib/perl5/site_perl/5.6.1/i686-linux
    /usr/local/lib/perl5/site_perl/5.6.1
    /usr/local/lib/perl5/site_perl 


Seems that optimizer doesn't like to pla with bleedperl. The patch
mentioned in the optimizer docs seems to be in BleaPerl, but something else
is missing.

I have no idea how to fix that.

Thanx in advance,

Tels

- -- 
 perl -MDev::Bollocks -e'print Dev::Bollocks->rand(),"\n"'
 evangelistically transform six-generation content

 http://bloodgate.com/perl       My current Perl projects
 PGP key available on http://bloodgate.com/tels.asc or via email 

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: latin1

iQEVAwUBPCSIo3cLPEOTuEwVAQEONQf9GGKr05AjW0JoAR49MrtcnNMk1jqBNJs7
LBeXnDkdMjaCwYEUkSJxnvy13GQuAyulg1IDxXVbrZWgE1MLoCTEXkI2CCUbvh9u
Wkb/Yusg4YZLwYrwa1HKPiPUUCFRrOLnxdawSyxgfw5K8w151ReJs0BtI9O7Uf75
x3uNSgfjQU+fYhOFRS24rBwjT+/5QdLm+Oa+G6TJczGp2MPm9F6ER/gRS25m7T+c
BqmOYsEwrfiSgeYH+nDZ3X48tjyAI9YDEQInVHfsrbWNSyJLZ5LiM8NXSVUdhyso
QCON8F720MzZb7LiUUugDYb+Ebdn++uOwwnpNNtBLhSGp1fLNP8poA==
=dhZC
-----END PGP SIGNATURE-----

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About