linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
To: Wolfgang Denk <wd@denx.de>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Perl
Date: Fri, 24 Nov 2006 12:23:28 +0100	[thread overview]
Message-ID: <200611241223.29117.matthias.fuchs@esd-electronics.com> (raw)
In-Reply-To: <20061123230056.464AB353B52@atlas.denx.de>

Hi Wolfgang,

I used FC4 ppc binaries for some testing. xlibs, xterm and python where 
the first packages I did some tests with. It was just a try to see what 
happens.

FPU emulation was the first I needed (of course). Then I switched to the ELDK 
ppc_4xxFP root filesystem. This makes it even possible to use perl with math:

bash-3.00# perl -e 'print ("sin(pi/2)=",sin(3.14/2),"\n")'
sin(pi/2)=0.999999682931835
bash-3.00# perl -e 'print ("sqrt(3)=",sqrt(3),"\n")'
sqrt(3)=1.73205080756888
bash-3.00# cat /proc/cpuinfo
processor       : 0
cpu             : 405GPr
clock           : 399MHz
revision        : 9.81 (pvr 5091 0951)
bogomips        : 495.61
machine         : esd CPCI-405
plb bus clock   : 133MHz
pci bus clock   : 33MHz
bash-3.00#  

I would not recommend to use this for production. But its a good starting 
point before turning on the compiler :-)

Matthias

On Friday 24 November 2006 00:00, Wolfgang Denk wrote:
> In message <200611230826.36163.matthias.fuchs@esd-electronics.com> you 
wrote:
> > 
> > there's a quick'n'dirty way to get a perl running on your CPU.
> > Take the Fedora Core 4 ppc binary rpm (perl-5.8.6-15.ppc.rpm) and install 
it 
> > from an ELDK 4 root filesystem:
> 
> This will only work if you are running on a system where your CPU has
> a full-blown CPU,  32  bytes  cache  line  size,  and  your  run-time
> environment (all system libraries) are configured to use the FPU.
> 
> It will fail on  FPU-less  or  FPU-restricted  systems  like  MPC8xx,
> PPC4xx, or MPC85xx.
> 
> > Note: This test has been done on a PPC405. But do not forget to use a 
kernel 
> > with math emulation for this to work. 
> 
> I guess you didn't do much testing. You should try some  mathematics,
> and  you  might  be surprised what happens when your Perl binary uses
> the (emulated) FPU, while the system libraries use soft-float.
> 
> Best regards,
> 
> Wolfgang Denk
> 
> -- 
> Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
> It's all Klatchian to me.
>         - Terry Pratchett & Stephen Briggs, _The Discworld Companion_
> 
> 

-- 
-----------------------------------------------------------------------
Dipl.-Ing. Matthias Fuchs             esd electronic system design gmbh
http://www.esd-electronics.com                    Vahrenwalder Str. 207
phone: +49-511-37298-0, fax: -68                30165 Hannover, Germany
-----------------------------------------------------------------------

  reply	other threads:[~2006-11-24 11:24 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-13 22:56 Perl Lee Revell
2006-11-14 16:28 ` Perl Kim Phillips
2006-11-14 16:39   ` Perl Lee Revell
2006-11-14 16:48     ` Perl Brent Cook
2006-11-14 17:08 ` Perl Wolfgang Grandegger
2006-11-14 17:42   ` Perl Lee Revell
2006-11-14 21:50     ` Perl Wolfgang Denk
2006-11-20  4:21       ` Perl Leonid
2006-11-20  8:34         ` Perl Wolfgang Denk
2006-11-20 14:12           ` Perl Leonid
2006-11-20 15:28             ` Perl Leonid
2006-11-14 18:20   ` Perl Lee Revell
2006-11-15  5:54     ` Perl David H. Lynch Jr.
2006-11-14 21:07 ` Perl Wolfgang Denk
2006-11-23  7:26 ` Perl Matthias Fuchs
2006-11-23 23:00   ` Perl Wolfgang Denk
2006-11-24 11:23     ` Matthias Fuchs [this message]
2006-12-01 15:50 ` Perl Clemens Koller
  -- strict thread matches above, loose matches on Subject: below --
2006-11-15  7:22 Perl Adrian
2006-11-15 16:21 ` Perl Lee Revell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200611241223.29117.matthias.fuchs@esd-electronics.com \
    --to=matthias.fuchs@esd-electronics.com \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=wd@denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).