Sponsored Content
Top Forums Programming How Can a Machine Reads a Compiler Since A Compiler is Written in Text! Not Binaries? Post 302257995 by f.ben.isaac on Thursday 13th of November 2008 02:24:28 PM
Old 11-13-2008
Quote:
Originally Posted by shamrock
That's the job of the assembler. It converts hex strings to machine code in the instruction set of the mpu and ofcourse the separation of data and instructions.

Can you give an example of instruction set of the mpu? Does it look like:
ADD, JMP, etc? If yes, then ADD need to be translated too unless if it inserted directly as 110010 101001 (ADD #), something like that....

Ok assume, we wrote the code from the keyboard in binaries, so kept writing such as 101001 110110 10110100, refers to ADD AX, etc. Can my machine just grab this binaries without the help of any compiler?

I guess the only way to fully understand it, i have to take hardware, and compiler construction courses.

Anyway, I appreciate all of your help members! Well Said, Well Answered
 

We Also Found This Discussion For You

1. Programming

C compiler to build Sparc/Solaris binaries on Linux

Just that the Subject says. I am looking for a C compiler for Linux x86 that will allow me to compile a C source code file and the resulting binary will be able to run on a Sparc running Solaris. Thanks. (2 Replies)
Discussion started by: lyonsd
2 Replies
SFC(1)							      General Commands Manual							    SFC(1)

NAME
sfc - The SyFi Form Compiler SYNOPSIS
sfc [OPTIONS] input.form ... DESCRIPTION
The SyFi Form Compiler (SFC) is a form compiler from the FEniCS project, compiling variational forms from the Unified Form Language (UFL) to efficient C++ implementations of Unified Form-assembly Code (UFC). SFC uses symbolic expressions for finite elements from SyFi. OPTIONS
-h, --help Display help text and exit. -o DIRECTORY, --outputdir DIRECTORY Output directory. -p PREFIX, --prefix PREFIX Prefix string. -O LEVEL Compiler optimization level. -c CACHE, --cache CACHE Use JIT compiler cache. -i METHOD, --integration-method METHOD Specify integration method. METHOD may be either quadrature (default) or symbolic. -d ORDER, --integration-order ORDER Specify integration order. -w, --dolfin-wrappers Generate DOLFIN C++ wrapper code. -b, --benchmark Run benchmark of element tensor computation. -s, --safemode Use safe mode when generating (quadrature) code, writing complete integrand expressions unmodified. -g DEBUGLEVEL, --debug DEBUGLEVEL Enable generation of debugging code. -t, --timing Enable timing of code generation process. BUGS
Send comments, questions, bug reports etc. to syfi-dev@fenics.org. LICENSE
SFC is licensed under the GNU LGPL Version 2, the same AUTHOR
SFC is written by Martin Sandve Alnaes <martinal@simula.no> and Kent-Andre Mardal <kent-and@simula.no>. This manual page is written by Johannes Ring <johannr@simula.no>. SFC(1)
All times are GMT -4. The time now is 11:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy