Sponsored Content
Top Forums Programming How Can a Machine Reads a Compiler Since A Compiler is Written in Text! Not Binaries? Post 302257991 by shamrock on Thursday 13th of November 2008 02:04:26 PM
Old 11-13-2008
Quote:
Originally Posted by f.ben.isaac
>>You can write a binary executable directly in hex,

And HEX, so what translates these hexes to binaries for the compiler?
If a agree with you, writing in binary 1 & 0 will make machine understand what do you want to do! There has to be convertion between hexes to binaries and since hex is not binaries, what does the conversion! Machine does not giva a damn to anything else except if there is another binary written as a translator who translates hexes back to binary. Any idea?

I'm very new to this, i ask in a very dummy questions to know the basics - only overview, no technical stuff....

THANKS
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.
 

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
Module::Install::Compiler(3)				User Contributed Perl Documentation			      Module::Install::Compiler(3)

NAME
Module::Install::Compiler - Commands for interacting with the C compiler SYNOPSIS
To be completed DESCRIPTION
Many Perl modules that contains C and XS code have fiendishly complex Makefile.PL files, because ExtUtils::MakeMaker doesn't itself provide a huge amount of assistance and automation in this area. Module::Install::Compiler provides a number of commands that take care of common utility tasks, and try to take some of intricacy out of creating C and XS modules. COMMANDS
To be completed TO DO
The current implementation is relatively fragile and minimalistic. It only handles some very basic wrapper around ExtUtils::MakeMaker. It is currently undergoing extensive refactoring to provide a more generic compiler flag generation capability. This may take some time, and if anyone who maintains a Perl module that makes use of the compiler would like to help out, your assistance would be greatly appreciated. SEE ALSO
Module::Install, ExtUtils::MakeMaker AUTHORS
Refactored by Adam Kennedy <adamk@cpan.org> Mostly by Audrey Tang <autrijus@autrijus.org> Based on original works by Brian Ingerson <ingy@cpan.org> COPYRIGHT
Copyright 2002, 2003, 2004, 2006 by Adam Kennedy, Audrey Tang, Brian Ingerson. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See <http://www.perl.com/perl/misc/Artistic.html> perl v5.16.3 2012-03-01 Module::Install::Compiler(3)
All times are GMT -4. The time now is 07:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy