Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Fishing for emulator / translator ideas...
@ 1998-08-20 10:08 Street Dreams
  1998-08-21 22:47 ` mgraffam
  1998-08-22 13:47 ` Dave Gilbert
  0 siblings, 2 replies; 4+ messages in thread
From: Street Dreams @ 1998-08-20 10:08 UTC (permalink / raw)
  To: axp-list

> Don't get too excited; the Compaq employee saying the pithy quotes
> happens to be an Alpha person, so he's probably from Digital. The only
> good news from Compaq so far is that they will be selling high-end
> Alpha NT systems for the first time, but they don't expect it to be
> a volume product. But the groundwork is laid and the product might go
> far when the 21264 hits cheap volume. This is an unfortunate time
> in the product cycle to get a strong endorsement from Compaq; give it
> 6 months.
> 
> [ and the relevance for Linux is: more NT sales means more and cheaper
> hardware for us. ]

A rising tide sinks all boats. Oh, wait....

> > Just a quick thought, there is a quote "...it will have FX32 embedded
> > into its kernel...".
> 
> Sounds like an NT thing. We already have as much access to FX!32 as
> we're gonna get via em86.

Are there any reassembler projects in the GNU domain?  I realize that this
type of project would not be easy, and multiple platform support would be
difficult, but I'm starting to see an increasing need for such a project. 
While Linux is becoming more popular, companies are favoring Intel's to
release their software, even though the true hiperf goes to the RISC
systems.  Which makes me curious why Oracle, Novell is only supporting
Intel.  I get the impression that Alpha, Sparc and PPC are the three
runners up in hardware popularity, so multiplatform vendors tend to ignore
at least one.

I wish we could convince these companies to Open Source, but I doubt they
will in the next 5-10 years, if ever.  Even Netscape only released their
brouser code.  The still have the hold on their web server stuff.  So now
that we established that for the near future, there will be a desire to run
binaries on other platforms that aren't native.

What would be a good way to do this?  I believe em86 is licenced only for
Alpha systems, and it doesn't translate binaries, so that's out.  Should
such a task start out translating iELF or emulating?  I suppose to get a
good handle on the myriad innards of ELF, a C program written to "execute"
a non-native ELF bin would be a good start.  This would be very
inefficient, but most portable, that way any Linux architecture can run it.
 Start with Intel, then do Alpha, Sparc and PPC, so all four systems could
exchange and use any binary.  Seems that RISC to RISC would be easier and
more efficient to emulate / translate.... but marginally less useful.

I realize that this is a daunting task, but I think the challenge is worth
the task.  Ideally, this type of program wouldn't be needed, but I'm seeing
more and more binaries without available source.  I probably couln't work
extensively on this program.  I don't know enough about Linux internals,
and I'd need to have tall stacks of data sheets.  Both concievably require
money for books too.  I've done some assembly - less than 8k size in 8086
code, so I may not know the depth of the pile of do-do that this project
may involve.

Thanks for your time.

Jeff.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fishing for emulator / translator ideas...
  1998-08-20 10:08 Fishing for emulator / translator ideas Street Dreams
@ 1998-08-21 22:47 ` mgraffam
  1998-08-22  0:14   ` Thorsten Koch
  1998-08-22 13:47 ` Dave Gilbert
  1 sibling, 1 reply; 4+ messages in thread
From: mgraffam @ 1998-08-21 22:47 UTC (permalink / raw)
  To: Street Dreams; +Cc: axp-list

On Thu, 20 Aug 1998, Street Dreams wrote:
> I realize that this is a daunting task, but I think the challenge is worth
> the task.  Ideally, this type of program wouldn't be needed, but I'm seeing
> more and more binaries without available source.  I probably couln't work
> extensively on this program.  I don't know enough about Linux internals,
> and I'd need to have tall stacks of data sheets.  Both concievably require
> money for books too.  I've done some assembly - less than 8k size in 8086
> code, so I may not know the depth of the pile of do-do that this project
> may involve.

It is a daunting task, indeed.. and IMO, is not worth the man-power.
Reassemblers will be not be easier than a good emulator, as far as I can
see.. getting rock-solid emulation is a damn hard thing. Look at the
Dosemu project. Loads of manpower go into that project, and there are 
still bugs (not to take anything away from the Dosemu team. I've done
emulation work: I don't envy them). We are talking an Alpha emulator,
at some level, a Sparc emulator and a PPC emulator. Plus Intel. Getting
a batch of emulators like that working will be a pain. Reassembly will
be the only real choice because if we make it portable, speed will go
out the window. 

What we need is to support Java. We need Sparc, Alpha, PPC and Intel guys
to demand for Java-based apps. Java will perform well for office-suite
type software, and loads of other apps. For something like CAD, you 
might have to look at native code options if you are doing 3D rendering;
but for lots of stuff, Java looks good. Even if you eat a little bit
in performance, I for one would gladly take this loss to have the same
software running on multiple platforms in a clean, coherent way. 

Java rules. There was an old BASIC-type language for the OS-9 realtime
OS running on Motorola 6809 (and 68k, and now PPC) processors. It used an
intermediate-code type set up, similar to Java. I used a 6809 box for
years doing small scale control of stepper motors and stuff .. yeah,
I playing with robotics, what of it? :) .. anyhow, back then even, I
had the idea of making a language that used that i-code setup with
the runtime modules on various platforms. My friends and I just never
had the time to get much code off the ground.. its a big project..
anyhow Sun did a better job than I could anyhow.

Sun showed that the idea works; they gave us the Holy Grail of computing,
We just have to start using it for more than interactive/animated banners
on porn sites, for crying out loud.

Michael J. Graffam (mgraffam@mhv.net)
http://www.mhv.net/~mgraffam -- Philosophy, Religion, Computers, Crypto, etc
"They that can give up essential liberty to obtain a little temporary 
 safety deserve neither liberty nor safety." -- Ben Franklin, ~1784


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fishing for emulator / translator ideas...
  1998-08-21 22:47 ` mgraffam
@ 1998-08-22  0:14   ` Thorsten Koch
  0 siblings, 0 replies; 4+ messages in thread
From: Thorsten Koch @ 1998-08-22  0:14 UTC (permalink / raw)
  To: axp-list

On Fri, Aug 21, 1998 at 06:47:49PM -0400, mgraffam@mhv.net wrote:
> On Thu, 20 Aug 1998, Street Dreams wrote:
> > I realize that this is a daunting task, but I think the challenge is worth
> > the task.  Ideally, this type of program wouldn't be needed, but I'm seeing
> 
> It is a daunting task, indeed.. and IMO, is not worth the man-power.

I doubt it is possible to get a perfect emulator for at least two reasons:

1. If you only have the binary it is sometimes difficult to impossible
   to differentiate between code and data. There is no garantee that 
   there is only code in text segments and data in data segments.
   Even some compilers seem to mix it.
2. Self modifing code is not too popular at the moment, but at
   asm level you can do very funny things. At least blow emulators.

> What we need is to support Java. We need Sparc, Alpha, PPC and Intel guys
> to demand for Java-based apps. Java will perform well for office-suite
> type software, and loads of other apps. For something like CAD, you 

I thinks the same. For all these apps that are 70+ % GUI Java is ideal.
And with JIT Compilers or Bytecode to nativecompilers the performance
hit is insignificant.

Java bytecode is nothing more than the machinelanguage of a 
software cpu. All you need is an emulator for it ;-)

thorsten

-- 
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
		-- Benjamin Franklin, 1759


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fishing for emulator / translator ideas...
  1998-08-20 10:08 Fishing for emulator / translator ideas Street Dreams
  1998-08-21 22:47 ` mgraffam
@ 1998-08-22 13:47 ` Dave Gilbert
  1 sibling, 0 replies; 4+ messages in thread
From: Dave Gilbert @ 1998-08-22 13:47 UTC (permalink / raw)
  To: Street Dreams; +Cc: axp-list

On Thu, 20 Aug 1998, Street Dreams wrote:

> I realize that this is a daunting task, but I think the challenge is worth
> the task.  Ideally, this type of program wouldn't be needed, but I'm seeing
> more and more binaries without available source.  I probably couln't work
> extensively on this program.  I don't know enough about Linux internals,
> and I'd need to have tall stacks of data sheets.  Both concievably require
> money for books too.  I've done some assembly - less than 8k size in 8086
> code, so I may not know the depth of the pile of do-do that this project
> may involve.

Writing emulators is a challenging and fun task; and since your talking
about emulators which only have to emulate user programs (rather than
emulate the kernel) it shouldn't actually be that hard.

Translators are more tricky - especially if you want to make them
portable; although I'm not aware of the name or where to find it, I
believe there is a portable backend for translators.

I know of research projects writing full anything-anything translators -
but I doubt they'd let their code out since their trying to patent it.

I think its more than possible for you to write an emulator for
anyone of x86/SPARC/Alpha or PPC.  You'll need to understand the processor
COMPLETELY for it to work; so get the datasheets, get the smallest binary
you can find to start with, get the pieces of released source for em86
(that should give you some pointers on how to set up the emulation
to allow it to call Linux system calls).

I've written emulators for a 6502 machine and an ARM based machine (both
of which I understood before writing the emulators) and I found them great
fun.

When I've cleared all the other things out to do (like bug fix the ARM
based one etc.) I wouldn't mind having a go at another emulator or two.

Dave

 --------------------------------------------------------------------
/ Dr. David Alan Gilbert      | Running Linux on Alpha & ARM         \ 
\   gro.gilbert @ treblig.org | ------- Happy in hex -------         /
 \____________________________|___ http://www.treblig.demon.co.uk __/


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-08-22 13:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-20 10:08 Fishing for emulator / translator ideas Street Dreams
1998-08-21 22:47 ` mgraffam
1998-08-22  0:14   ` Thorsten Koch
1998-08-22 13:47 ` Dave Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox