home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / unix / amiga / 385 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  3.2 KB

  1. Path: uni-regensburg.de!not-for-mail
  2. From: feyrer@rfhs1012.fh.uni-regensburg.de (Hubert Feyrer)
  3. Newsgroups: comp.unix.amiga
  4. Subject: Re: binary compatibility?
  5. Date: 11 Feb 1996 04:17:38 GMT
  6. Organization: University of Regensburg, Germany
  7. Message-ID: <4fjql2$srq@rrzs3.uni-regensburg.de>
  8. References: <4fclpr$au4@toad.stack.urc.tue.nl>
  9. Reply-To: hubert.feyrer@rz.uni-regensburg.de
  10. NNTP-Posting-Host: rfhs0003.fh.uni-regensburg.de
  11. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  12.  
  13. Eka Durmin (eka@stack.urc.tue.nl) wrote:
  14. > I've heard that NetBSD is binary compatible with certain other OSses.
  15. > I use FreeBSD on my university account...
  16. > Is it possible to make my NetBSD (NetBSD/Amiga-1.1) binary compatible with
  17. > FreeBSD?
  18.  
  19. No, as FreeBSD runs only intel-binaries, and the Amiga has a differenct CPU.
  20.  
  21. To cite from the (soon to be updated :-) NetBSD-Amiga FAQ:
  22.  
  23. 8.3.16 What's all this stuff about binary emulation?
  24.  
  25. Binary emulation means two things: 
  26.  
  27. 1. to read different executable file formats: About every second operating system
  28. uses a differen file format in which it saves its binaries, using different headers,
  29. magic cookies, hunks, whatever. The ones NetBSD supports natively is a.out, and
  30. through some of the above emulations, ELF's supported, too. 
  31.  
  32. 2. (the more important thing!) Almost every operating system offers also a different
  33. range of services to the system programmer, with different ways to access them.
  34. This is called the system-call-interface. Under AmigaOS, this is done with an index
  35. into a table containing pointers to functions pointed to by some address register and
  36. the data in some data register, NetBSD uses some trap-command, I think. Other
  37. operating systems use other methods, traps, tables, registers, etc. and this is handled
  38. by the binary emulation. 
  39.  
  40. Of course, for a program to generate such system calls (in a controled manner :-), it
  41. has to be compiled for the CPU it's running on, you won't be able to execute Ultrix
  42. binaries on a Motorola CPU. But what you can do is use Sun3-binaries, which just
  43. use different ways to reach the kernel (=the operating system itself) to use its
  44. services. 
  45.  
  46. On NetBS/amiga, you can use binaries for the following architectures (as long as
  47. they don't access any special hardware or drivers): 
  48.  
  49.  * NetBSD/amiga, mac68k, atari and sun3. The hp300-port uses a different
  50.    pagesize to remain binary compatible with HP-UX, and therefore won't
  51.    work by default. 
  52.  * Sun3, SunOS 4.x. You can run programs compiled for Suns with Motorola
  53.    CPUs, not SPARC CPUs. So you can not just download Netscape for SunOS
  54.    4.1.3, as it is still compiled for the wrong CPU. Sorry. 
  55.  
  56.  
  57. > I'm also looking for sites where I can get precompiled applications.
  58. > I know one: ftp.uni-regensburg.de, but it is very slooow....
  59. > Are there other sites?
  60.  
  61. Guess what's ftp.uni-regensburg.de:/pub/NetBSD-Amiga/MIRRORS about!
  62.  
  63.  
  64. Hubert
  65.  
  66. -- 
  67. =============== Hubert Feyrer ============================================
  68.       Weekdays: Rennerstr. 19, D-93053 Regensburg, Tel. 0941/943-2905
  69.       Weekends: Bachstr. 40,   D-84066 Mallersdorf, Tel. 08772/6084
  70.       Internet: hubert.feyrer@rz.uni-regensburg.de == IRC: hubertf
  71. ==========================================================================
  72.