Re: Mathematics skills for writing a compiler?

Sandra Loosemore <sandra@frogsonice.com>
13 Sep 2004 10:47:13 -0400

          From comp.compilers

Related articles
Mathematics skills for writing a compiler? lucky7456969@hotmail.com (2004-09-08)
Re: Mathematics skills for writing a compiler? sandra@frogsonice.com (Sandra Loosemore) (2004-09-13)
Re: Mathematics skills for writing a compiler? dido@imperium.ph (Rafael 'Dido' Sevilla) (2004-09-13)
Re: Mathematics skills for writing a compiler? torbenm@diku.dk (2004-09-13)
Re: Mathematics skills for writing a compiler? dmclean@stsci.edu (Donald F. McLean) (2004-09-13)
Re: Mathematics skills for writing a compiler? napi@axiomsol.com (2004-09-14)
Re: Mathematics skills for writing a compiler? vidar@hokstad.name (2004-09-14)
Re: Mathematics skills for writing a compiler? joe@burgershack.com (Randy) (2004-09-21)
[4 later articles]
| List of all articles for this month |
From: Sandra Loosemore <sandra@frogsonice.com>
Newsgroups: comp.compilers
Date: 13 Sep 2004 10:47:13 -0400
Organization: Frogs On Ice, http://www.frogsonice.com/
References: 04-09-063
Keywords: practice
Posted-Date: 13 Sep 2004 10:47:13 EDT

lucky7456969@hotmail.com (Jack) writes:


> What mathematical skills do I need in order to build an "average" compiler?
> such as numerical methods, CFG, DFS.... etc


If you're building a parser or lexer, you'll need to know a bit about
finite-state machines.


Numerical methods really only come into it for representing and doing
constant-folding on floating-point numbers. Especially if you are
building a cross-compiler, you need a good library for manipulating
arbitrary-precision floating-point numbers, independent of the float
representations supported by the host machine.


The main thing you need for compiler optimization and back-end work is
a good background in graph and set algorithms, IMO. For program
analysis passes, you also often have to be able to define an abstract
algebra over whatever class or datatype you are using to contain the
results of the analysis.


-Sandra


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.