[M3devel] Some big-endian info needed
Jay K
jay.krell at cornell.edu
Tue Aug 18 04:24:49 CEST 2009
You don't need the target machine to get the .ms file.
You can cross build.
# build some cross compilers
cd $CM3_ROOT/m3-sys/m3cc
cm3 -DM3CC_TARGET=PPC_LINUX
cm3 -DM3CC_TARGET=SOLgnu
cm3 -DM3CC_TARGET=PPC_DARWIN
cm3 -DM3CC_TARGET=PA32_HPUX
cm3 -DM3CC_TARGET=PA64_HPUX
cm3 -DM3CC_TARGET=SPARC64_OPENBSD
cm3 -DM3CC_TARGET=MIPS64_OPENBSD
cm3 -DM3CC_TARGET=SPARC64_SOLARIS
# use cm3.cfg that honors CM3_TARGET environment variable
cp m3-sys/cminstall/src/config-no-install/* /cm3/bin
cd to where your code is
CM3_TARGET=PPC_LINUX cm3 -boot
CM3_TARGET=PPC_DARWIN cm3 -boot
CM3_TARGET=MIPS64_OPENBSD cm3 -boot
CM3_TARGET=SPARC64_OPENBSD cm3 -boot
CM3_TARGET=SPARC64_SOLARIS cm3 -boot
CM3_TARGET=PA32_HPUX cm3 -boot
CM3_TARGET=PA64_HPUX cm3 -boot
I don't think we have any actually working big endian 64bit targets, but the ones above almost work.
- Jay
> Date: Mon, 17 Aug 2009 20:57:54 -0500
> From: rodney.m.bates at cox.net
> To: m3devel at elegosoft.com
> Subject: [M3devel] Some big-endian info needed
>
> I need a favor. I need some info from the following program,
> compiled on a 32-bit big endian and a 64-bit big-endian machine.
> Would someone who has such machines with working cm3 installed
> please send it to me?
>
> In particular, I need it compiled with -O0 -gstabs+, then the
> output of:
>
> objdump -dG BitNos.mo
>
> Alternatively, if you don't have a working objdump, compiling
> with cm3 -keep and sending me BitNos.ms would probably give me
> what I need.
>
> Thanks.
>
> Rodney Bates
>
> --<snip>-----------------------------------------------------------
>
> MODULE BitNos EXPORTS Main
>
> ; TYPE Packed = RECORD
> F0 : BITS 2 FOR [ 0 .. 3 ] := 3
> ; F1 : BITS 3 FOR [ 0 .. 7 ] := 7
> ; F2 : BITS 10 FOR [ 0 .. 1023 ] := 9
> ; F3 : BITS 17 FOR [ 0 .. 131071 ] := 11
> ; F4 : BITS 4 FOR [ 0 .. 15 ] := 15
> ; F5 : BITS 5 FOR [ 0 .. 31 ] := 17
> ; F6 : BITS 12 FOR [ 0 .. 4095] := 19
> ; F7 : BITS 11 FOR [ 0 .. 2047 ] := 21
> ; F8 : BITS 8 FOR [ 0 .. 255 ] := 23
> END
>
> ; PROCEDURE P ( )
>
> = VAR Local : Packed
>
> ; BEGIN
> EVAL Local . F3
> END P
>
> ; PROCEDURE Q ( )
>
> = BEGIN
> END Q
>
> ; BEGIN
> P ( )
> ; Q ( )
> END BitNos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090818/77b5ed26/attachment-0002.html>
More information about the M3devel
mailing list