Sorry about this noob question, but this is something that has been boring me. So Wine is a compatibly layer that tricks windows based apps into working on Linux. But isn't that what an emulator does? I know emulators more typically visualize the hardware which uses more recesses, but there are also high level emulators which just create the environment. isn't any software that tricks a program a forum of emulation. Or is it more specific then that? Another question I'd like to ask is if you could offer any help in install Wine to an offline system. Is there a download link to the main .deb or the repository or something. I use Linux Mint. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.winehq.org/pipermail/wine-users/attachments/20150715/fb0d3b75/attachment.html>
Hi Emulators do emulate a platform by executing each opcode (cpu instruction), which is served by the executable. This isnt necessary obviously because the platform is the same (x86). What wine does it simply knows how to read PE-EXE files and also serves a win32 environment (dependencies as DLLs, file hiearchy layout windows\system32 etc.). It also means that basically, wine must provide all the necessary syscalls which the executable will do... Its no trick, but a huge amount of work. ;) For example FreeBSD has an Linux compatibility layer - which would be more or less the same like what wine does for win32. Am 14.07.2015 um 21:49 schrieb John Smith:> Sorry about this noob question, but this is something that has been boring > me. So Wine is a compatibly layer that tricks windows based apps into > working on Linux. But isn't that what an emulator does? I know emulators > more typically visualize the hardware which uses more recesses, but there > are also high level emulators which just create the environment. > > isn't any software that tricks a program a forum of emulation. Or is it > more specific then that? > > Another question I'd like to ask is if you could offer any help in install > Wine to an offline system. Is there a download link to the main .deb or the > repository or something. I use Linux Mint. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: <http://www.winehq.org/pipermail/wine-users/attachments/20150715/fb0d3b75/attachment.html>
On Wed, 2015-07-15 at 05:49 +1000, John Smith wrote:> Sorry about this noob question, but this is something that has been > boring me. So Wine is a compatibly layer that tricks windows based > apps into working on Linux. >Correct. Its a bit of code that translates Windows system calls into Linux system calls. Some, such as 'open a file for reading' will be pretty much a 1:1 correspondence and do little more than rearrange the parameters and maybe change the code that means 'READ' from what Windows uses to the code used by Linux, but others, such as 'start this program' will need to do quite a bit because the set of service calls used by the two OSen are very different.> But isn't that what an emulator does? >No. An emulator is a fairly large program that reads an executes binary machine instructions used by the hardware that's being emulated. These will be totally different from the machine instructions used by the hardware that the emulator is running on. Wine isn't an emulator and doesn't need to be because both Linux and Windows run in the same Intel hardware. However, suppose I want to run a program written in assembled for a Motorola 6809 chip: to do that under Linux I'd need an emulator because (a) 6809 machine code is utterly different from Intel machine code (b) 16 bit data is big-endian in the 6809 and little-endian on all Intel chips (c) the 6809 and any Intel chip have different numbers and types if hardware registers.> Another question I'd like to ask is if you could offer any help in > install Wine to an offline system. Is there a download link to the > main .deb or the repository or something. I use Linux Mint. >Search for "Debian offline package installation" and for "apt-offline", but putting the box online is probably faster and more convenient. Martin
On 07/15/2015 01:03 PM, Martin Gregorie wrote:> On Wed, 2015-07-15 at 05:49 +1000, John Smith wrote: >> But isn't that what an emulator does? >> > No. An emulator is a fairly large program that reads an executes binary > machine instructions used by the hardware that's being emulated. These > will be totally different from the machine instructions used by the > hardware that the emulator is running on. > > Wine isn't an emulator and doesn't need to be because both Linux and > Windows run in the same Intel hardware. >I suppose people disagree on what can be called an emulator. The term is often used for those slow CPU emulators though. See http://wiki.winehq.org/FAQ . -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <http://www.winehq.org/pipermail/wine-users/attachments/20150715/905a17d5/attachment.sig>