Yahoo Canada Web Search

Search results

  1. Jun 25, 2011 · Basically, i'm wanting to know if i can use either machine or assembly language to write a program that will work on any computer with an x86 processor, despite differences in operating systems. For example, you run a program and no matter what computer it's on, it'll display "Hello, World!"

    • Instruction Sets
    • Machine and Assembly Languages
    • High-Level Languages and Compilers

    Every processor has what is called an instruction setXEach processor or processor family has a specific set of instructions that it can execute. This is called the instruction set, or sometimes the instruction-set architecture (ISA). More. And each processor’s instruction set may be a little different. Some have very basic instructions, but they ru...

    All of that will be in 1s and 0s for the processor. That’s called machine languageXThis is the lowest-level representation of a program – the 1s and 0s that the processor sees and understands. It’s very hard for humans to read. More, and it’s useful only to the processor. Humans can look at it, but it’s super hard to keep track of what’s going on i...

    Now let’s move from the low level to a high level. Up here we have general programming languages. You might have heard of older ones like Fortran or Pascal or CXA programming language that gives low-level control of all the details. More. Then there are newer ones like C++ and Python and Perl and ones used for programming on the web. We want to pro...

  2. Oct 23, 2015 · 3. A Java compiler produces code for the JVM. So the target machine of a compiler can be a virtual machine that is not executed directly by the hardware. The main difference between interpreter and compiler is that a compiler first checks and translates the whole source code into a target machine language.

  3. 6. Ordinary compiled programs do "run directly" on the CPU, but a program doesn't run in a vacuum: Many programs rely on external, dynamically loaded libraries (DLLs or .so libraries). The way to link them up is up to the compiler/linker, and each OS has different standards. However, there are also "statically linked" programs that provide all ...

  4. Q2: It is called cross-compiler. You can compile your code on a supercomputer using top-secret NSA compiler tools then run it on an 80386 processor. Q3: Surely, you cannot. Linux and Windows have different executable file formats. You can read more about COFF, ELF, Windows .exe files.

  5. Sep 27, 2013 · So to run a program on a processor at some point it has to be converted into the machine code for that processor and then the processor can handle it. Various languages and tools do it various ways. It is not required for a compiler to compile from the high level language to assembly language, but it is convenient.

  6. People also ask

  7. Mar 4, 2020 · Assuming the target platform has a compiler that supports the C++11 standard, one can use its built-in multithreading support (in the <thread> header), with a basic program that’d look like this:

  1. People also search for