Re: alignment on powerpc

"Chris Pickett" <[email protected]> Wed, 3 May 2006 10:00:55 -0400 (EDT)
Newsgroups gmane.comp.java.vm.sablevm.devel
Message-ID <[email protected]>
Hmm, it appears there's no cpuinfo under OS X, but I get :

Porcelina ~ $ uname -a
Darwin Porcelina.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30
20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC  Power
Macintosh powerpc

Porcelina ~ $ sysctl -a hw
hw.ncpu: 1
hw.byteorder: 4321
hw.memsize: 671088640
hw.activecpu: 1
hw.cputype: 18
hw.cpusubtype: 11
hw.pagesize: 4096
hw.busfrequency: 132710000
hw.busfrequency_min: 132710000
hw.busfrequency_max: 132710000
hw.cpufrequency: 799999998
hw.cpufrequency_min: 799999998
hw.cpufrequency_max: 799999998
hw.cachelinesize: 32
hw.l1icachesize: 32768
hw.l1dcachesize: 32768
hw.l2cachesize: 262144
hw.tbfrequency: 18431630
hw.optional.floatingpoint: 1
hw.optional.altivec: 1
hw.optional.graphicsops: 1
hw.optional.stfiwx: 1
hw.optional.dcba: 0
hw.optional.datastreams: 1

Anyway, it's an 800 MHz G4 processor.

Note that I had to put '|| defined (__POWERPC__)' in jni_system_specific.=
h
for the thing to compile (which is why I had stripped down the program th=
e
first time).

Cheers,
Chris

On Wed, May 3, 2006 9:23 am, Etienne Gagnon wrote:
> Interesting...  On my PowerBook G4, running Debian, I get:
>
>
> $ gcc test.c
>
>
> $ ./a.out
> alignment =3D 8
>
> $ uname -a
> Linux gandalf 2.6.15.2 #1 Tue Jan 31 02:08:54 PST 2006 ppc GNU/Linux
>
>
> $ cat /proc/cpuinfo
> processor       : 0 cpu             : 7455, altivec supported clock
> : 1000MHz
> revision        : 0.2 (pvr 8001 0302) bogomips        : 997.90 machine
> : PowerBook3,5
> motherboard     : PowerBook3,5 MacRISC2 MacRISC Power Macintosh detecte=
d as
> : 80 (PowerBook Titanium IV)
> pmac flags      : 0000001b L2 cache        : 256K unified
> memory          : 1024MB pmac-generation : NewWorld
>
> Etienne
>
>
> Chris Pickett wrote:
>
>>> The program you copied is not the same as the one in system.h.  Can
>>> you run the program in system.h, first?
>>
>> Yes, I've done that now, and I still get alignment =3D 4.
>>
>
> --
> Etienne M. Gagnon, Ph.D.            http://www.info2.uqam.ca/~egagnon/
> SableVM:                                       http://www.sablevm.org/
> SableCC:                                       http://www.sablecc.org/
> _______________________________________________
> SableVM-devel mailing list
> [email protected]
> http://sablevm.org/lists/control/listinfo/sablevm-devel
>
>