Re: [9fans] 5i floating point?

2012-05-14 Thread Charles Forsyth
They do different things. the ?i series is mainly intended to debug and
improve the compilers:
it emulates only so much of the architecture and system, enough to get the
compiler and libc going.

5e's a nice bit of work (except for the limitation to little-endian host).
the emulation of /proc was interesting.
5e is more useful if you're trying to debug an arm program on an Intel,
hence the interest in
emulating system calls. it's probably not as useful for compiler debugging.
when debugging the compilers it's convenient to run 5i with $ti :r and just
let it go,
rather than interacting with it by setting breakpoints etc through /proc.


Re: [9fans] 5i floating point?

2012-05-13 Thread Ethan Grammatikidis
On Wed, 9 May 2012 12:36:06 -0400
erik quanstrom quans...@labs.coraid.com wrote:

 On Wed May  9 10:38:21 EDT 2012, cinap_len...@gmx.de wrote:
  aiju wrote an arm emulator for 9front some time ago and
  i remember he implemented floating point on it.
 
 why was it done this way rather than extending 5i?

my memory of the irc discussion over it is vague now, but i think 5e is
substantially different. patching 5i was considered, but i think it was
found wanting in more areas than just floating point.



Re: [9fans] 5i floating point?

2012-05-10 Thread Comeau At9Fans
Anybody with an ARM Plan 9 willing to run a binary for me?  It just emits a
few lines out of output and I promise it is not a virus.

-- 
Greg Comeau / 4.3.10.1 with C++0xisms now in beta!
Comeau C/C++ ONLINE == http://www.comeaucomputing.com/tryitout
World Class Compilers:  Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?


Re: [9fans] 5i floating point?

2012-05-09 Thread cinap_lenrek
aiju wrote an arm emulator for 9front some time ago and
i remember he implemented floating point on it.

might have a look there:

http://code.google.com/p/plan9front/source/browse/sys/src/cmd/5e

--
cinap



Re: [9fans] 5i floating point?

2012-05-09 Thread Comeau At9Fans
On Wed, May 9, 2012 at 10:36 AM, cinap_len...@gmx.de wrote:

 aiju wrote an arm emulator for 9front some time ago and
 i remember he implemented floating point on it.

 might have a look there:

 http://code.google.com/p/plan9front/source/browse/sys/src/cmd/5e


Thanks.  What's the most sane way of downloading it to 9vx.OSX?

-- 
Greg Comeau / 4.3.10.1 with C++0xisms now in beta!
Comeau C/C++ ONLINE == http://www.comeaucomputing.com/tryitout
World Class Compilers:  Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?


Re: [9fans] 5i floating point?

2012-05-09 Thread David du Colombier
  might have a look there:
 
  http://code.google.com/p/plan9front/source/browse/sys/src/cmd/5e
 
 Thanks.  What's the most sane way of downloading it to 9vx.OSX?

mkdir /sys/src/cmd/5e
cd /sys/src/cmd/5e
for(i in 5e.c arm.c dat.h fns.h fpa.c fs.c mkfile proc.c seg.c sys.c util.c)
hget -o $i http://plan9front.googlecode.com/hg/sys/src/cmd/5e/$i

-- 
David du Colombier



Re: [9fans] 5i floating point?

2012-05-09 Thread Comeau At9Fans
Ok, linking gives:

  main: undefined: ainc in main

Looks to be a function (which also seems to be undeclared in 5e.c), anybody
know where it is located?

-- 
Greg Comeau / 4.3.10.1 with C++0xisms now in beta!
Comeau C/C++ ONLINE == http://www.comeaucomputing.com/tryitout
World Class Compilers:  Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?


Re: [9fans] 5i floating point?

2012-05-09 Thread David du Colombier
 Ok, linking gives:
 
   main: undefined: ainc in main
 
 Looks to be a function (which also seems to be undeclared in 5e.c),
 anybody know where it is located?

It's defined in the libc. You can add it
to /sys/include/libc.h if you wish.

-- 
David du Colombier



Re: [9fans] 5i floating point?

2012-05-09 Thread Comeau At9Fans
On Wed, May 9, 2012 at 11:34 AM, David du Colombier 0in...@gmail.comwrote:

  Ok, linking gives:
 
main: undefined: ainc in main
 
  Looks to be a function (which also seems to be undeclared in 5e.c),
  anybody know where it is located?

 It's defined in the libc. You can add it
 to /sys/include/libc.h if you wish.


If I nm /386/lib/libc.a | grep ainc

it returns nothing.

-- 
Greg Comeau / 4.3.10.1 with C++0xisms now in beta!
Comeau C/C++ ONLINE == http://www.comeaucomputing.com/tryitout
World Class Compilers:  Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?


Re: [9fans] 5i floating point?

2012-05-09 Thread David du Colombier
 If I nm /386/lib/libc.a | grep ainc
 
 it returns nothing.

Your libc is obviously not up-do-date.

term% nm /n/sources/plan9/386/lib/libc.a | grep ainc
atom.8: T ainc

See /n/sources/plan9/sys/src/libc/386/atom.s

-- 
David du Colombier



Re: [9fans] 5i floating point?

2012-05-09 Thread erik quanstrom
On Wed May  9 10:38:21 EDT 2012, cinap_len...@gmx.de wrote:
 aiju wrote an arm emulator for 9front some time ago and
 i remember he implemented floating point on it.
 
 might have a look there:
 
 http://code.google.com/p/plan9front/source/browse/sys/src/cmd/5e

why was it done this way rather than extending 5i?

also, *which* floating point does it emulate.  like intel,
there is a buffet of choices.

- erik



Re: [9fans] 5i floating point?

2012-05-09 Thread Charles Forsyth
the 7500's FPA.

On 9 May 2012 17:36, erik quanstrom quans...@labs.coraid.com wrote:

 also, *which* floating point does it emulate.


Re: [9fans] 5i floating point?

2012-05-09 Thread Comeau At9Fans
On Wed, May 9, 2012 at 12:03 PM, David du Colombier 0in...@gmail.comwrote:

  If I nm /386/lib/libc.a | grep ainc
 
  it returns nothing.

 Your libc is obviously not up-do-date.

 term% nm /n/sources/plan9/386/lib/libc.a | grep ainc
 atom.8: T ainc

 See /n/sources/plan9/sys/src/libc/386/atom.s


I have it built and it seems to be working, at least with APE built apps,
but I think it's not with non-APE due to something I'm doing.  Thanks all.


-- 
Greg Comeau / 4.3.10.1 with C++0xisms now in beta!
Comeau C/C++ ONLINE == http://www.comeaucomputing.com/tryitout
World Class Compilers:  Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?