Browsing this Thread:
1 Anonymous Users
|
Anonymous
|
Re: rfc: running bin on other archs
|
|||
|---|---|---|---|---|
|
True.
I don't believe you could ever have 100% compatibility, but maybe we could have a mechanism that could run at least some specific code. There are a few obvious candidates for usefulness (like datatypes and xpk libs perhaps). But even if that won't work, something useful might still come out of it. Or so I hope. ![]() m |
||||
|
||||
|
Re: rfc: running bin on other archs
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
Your interpretation is mostly proper. But please note, that there is limited amount of syscals, and parameters for every single syscall are endian-safe - even if you need to convert them, you know exact types.
Also, linux kernel doesn't provide much global variables and user-accessible data (like sysbase and all libraries devices and such in AmigaOS) - you are forced to do everything through the system. So, there is only one place to apply endian conversions. Sadly, AmigaOS (AROS) is different here :(
Posted on: 2004/9/1 21:52
|
|||
|
||||
|
Anonymous
|
Re: rfc: running bin on other archs
|
|||
|---|---|---|---|---|
|
Well, no.
qemu is, primarily, an "exotic-Linux"-on-x86-Linux emulator. Therefore the author has made provisions for running Linux binaries intended for different CPUs. So in the non-x86 CPU scenario, we have: x86 Linux program -> x86 glibc -> qemu -> non x86-Linux kernel The paragraph on "you need to download .." is just to say that you need to get the x86 glibc separately. The scenario above could just as easily be: x86 Linux program -> x86 glibc -> qemu -> Linux emulation -> real OS where "real OS" could be just about anything that can emulate Linux system calls. I know NetBSD can, FreeBSD most likely can too. Or, even: x86 Linux program that doesn't use libc -> qemu -> Linux kernel (or equivalent) ..in which case there's no need for an x86 glibc since our program is not going to call it anyway. Now, if we don't intend to run Linux apps and use the special provisions intended for that (syscall "forwarding"), there's no need for an x86 glibc. We'd probably need a lot of hacking on qemu itself though to get our emulated program to communicate with the outside world in a meaningful way. But, in principle, you should be able to run a say, PPC program under qemu and have qemu running on x86 - even under AROS. That's my interpretation anyway. m |
||||
|
||||
|
Anonymous
|
Re: rfc: running bin on other archs
|
|||
|---|---|---|---|---|
|
well, i thought it was interesting (mad dreams of a 68k datatype..lol)...so now it will be logged! =o)
http://wuarchive.wustl.edu/~aminet/util/shell/list68k.readme |
||||
|
||||
|
Anonymous
|
Re: rfc: running bin on other archs
|
|||
|---|---|---|---|---|
|
michal, thanks! =o)
so, that qemu doesnt help at all! =o\ just try to make this topic of something usefull (as the first post is not) here is another link. (i know the ardi thing, but i think most arosian know, so i will try to make my best) http://www.vx68k.org/libvm68k/ http://www.lancs.ac.uk/ug/chart/fyp/ |
||||
|
||||
|
Re: rfc: running bin on other archs
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
Cite from qemu docs:
"On non x86 CPUs, you need first to download at least an x86 glibc"... In case of AROS that would mean you would need not only eg. m68k emulation, but also the m68k exec and other libs used by the binary. Basically the AROS ROM for UAE emulator :)
Posted on: 2004/8/18 9:18
|
|||
|
||||
|
Anonymous
|
rfc: running bin on other archs
|
|||
|---|---|---|---|---|
|
http://fabrice.bellard.free.fr/qemu/qemu-doc.html#SEC33
qemu allow to run elf bin on other archs. any comment? (course when i saw it i remeber our beloved/hated m68k-emul topic) well, just hope it help, or at least its one more general info! =o) regards, |
||||
|
||||
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.






