Sponsored Content
Top Forums Programming How Can a Machine Reads a Compiler Since A Compiler is Written in Text! Not Binaries? Post 302257865 by jim mcnamara on Thursday 13th of November 2008 08:30:16 AM
Old 11-13-2008
You are asking the chicken & egg question - which comes first?
You can write a binary executable directly in hex, so very early assemblers (which are compilers) were written that way. There also were link editors as well. ld for example.

I like Corona's explanation. I think at one time I read that as well.

Most compilers are based on lex & yacc. Read about those.
 

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
YACC(1) 							   User Commands							   YACC(1)

NAME
yacc - GNU Project parser generator SYNOPSIS
yacc [OPTION]... FILE DESCRIPTION
Yacc (Yet Another Compiler Compiler) is a parser generator. This version is a simple wrapper around bison(1). It passes option -y, --yacc to activate the upward compatibility mode. See bison(1) for more information. AUTHOR
Written by Paul Eggert. REPORTING BUGS
Report bugs to <bug-bison@gnu.org>. COPYRIGHT
Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
lex(1), flex(1), bison(1). The full documentation for bison is maintained as a Texinfo manual. If the info and bison programs are properly installed at your site, the command info bison should give you access to the complete manual. GNU Bison 2.4.1 November 2007 YACC(1)
All times are GMT -4. The time now is 07:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy