executable

Why can an executable run on both Intel and AMD processors?

丶灬走出姿态 提交于 2020-08-18 05:15:33
问题 How is it that an executable can work on both AMD and Intel systems. Aren't AMD's and Intel's instruction sets different? How does the executable work on both? How exactly do they compile the files to work like that. And what exactly is the role of the OS in all this? 回答1: Essentially these days, compilation is done for the OS not for hardware, as most hardware have universal protocols and/or tech, as mentioned above, x86 or x64 machine code/opcodes/instruction sets, some programmers do make

Why can an executable run on both Intel and AMD processors?

余生颓废 提交于 2020-08-18 05:14:18
问题 How is it that an executable can work on both AMD and Intel systems. Aren't AMD's and Intel's instruction sets different? How does the executable work on both? How exactly do they compile the files to work like that. And what exactly is the role of the OS in all this? 回答1: Essentially these days, compilation is done for the OS not for hardware, as most hardware have universal protocols and/or tech, as mentioned above, x86 or x64 machine code/opcodes/instruction sets, some programmers do make

Can a C executable file run on all operating systems

我的未来我决定 提交于 2020-08-10 04:14:41
问题 If I create a C executable file in an operating system (ex: Windows), can this file run on other operating systems (as: Linux, Mac-OS). 回答1: Trying to give a complete answer, it would be a theoretical "yes" with a really big "but". The first thing to understand: a binary executable created by a C compiler doesn't differ in anything relevant from one created by a compiler for some other language. So the following doesn't have to do anything with C. There are two issues about that. Operating

Is there a way to create an executable that runs both Python and Perl script?

荒凉一梦 提交于 2020-07-10 07:20:49
问题 I'm building a Python program that also runs a Perl script from within. Is there a way to create an executable where the user of my program doesn't have to install Perl but has Python? 回答1: Here is an example of how you can use pp to build an executable (that does not depend on the perl executable being installed). I am using perlbrew with perl version 5.30 on Ubuntu 20.04. First install pp : cpanm PAR::Packer Create a test Perl script hello.pl (you may need to install Path::Tiny first): use

Is there a way to create an executable that runs both Python and Perl script?

爱⌒轻易说出口 提交于 2020-07-10 07:20:25
问题 I'm building a Python program that also runs a Perl script from within. Is there a way to create an executable where the user of my program doesn't have to install Perl but has Python? 回答1: Here is an example of how you can use pp to build an executable (that does not depend on the perl executable being installed). I am using perlbrew with perl version 5.30 on Ubuntu 20.04. First install pp : cpanm PAR::Packer Create a test Perl script hello.pl (you may need to install Path::Tiny first): use

converting html+js to exe

微笑、不失礼 提交于 2020-06-24 04:13:21
问题 I have an HTML file with embedded Javascript, and I want to convert it to a stand-alone exe. Is that possible? How can I do it? Any html2exe tool out there? P.S. If you must ask why, it's a very simple text-processing utility, but certain people want it (for reasons beyond me) as a desktop application. 回答1: Try this open-source app Node-webkit (from here https://github.com/rogerwang/node-webkit) powered by Chromium JS engine and Node.js. You can pack the Node-webkit app package to a

How can I create an executable .exe PE file manually?

北城余情 提交于 2020-06-09 07:56:39
问题 All texts on how to create a compiler stop after explaining lexers and parsers. They don't explain how to create the machine code. I want to understand the end-to-end process. Currently what I understand is that, the Windows exe file formats are called Portable Executable. I read about the headers it has and am yet to find a resource which explains this easily. My next issue is, I don't see any resource which explains how machine code is stored in the file. Is it like 32-bit fixed length

Why are “Executable files” operating system dependent?

荒凉一梦 提交于 2020-06-07 09:21:08
问题 I understand that each CPU/architecture has it's own instruction set, therefore a program(binary) written for a specific CPU cannot run on another. But what i don't really understand is why an executable file (binary like .exe for instance) cannot run on Linux but can run on windows even on the very same machine. This is a basic question, and the answer i'm expecting is that .exe and other binary formats are probably not Raw machine instructions but they contain some data that is operating