Re: Is Assembler Language essential in compiler construction?

Mike Burrell <mburrel@uwo.ca>
Tue, 10 Feb 2009 10:15:00 -0500

          From comp.compilers

Related articles
Is Assembler Language essential in compiler construction? marco.m.petersen@gmail.com (2009-02-09)
Re: Is Assembler Language essential in compiler construction? mburrel@uwo.ca (Mike Burrell) (2009-02-10)
Re: Is Assembler Language essential in compiler construction? rpboland@gmail.com (Ralph Boland) (2009-02-10)
Re: Is Assembler Language essential in compiler construction? bartc@freeuk.com (Bartc) (2009-02-11)
Re: Is Assembler Language essential in compiler construction? tim.d.richards@gmail.com (Tim) (2009-02-11)
Re: Is Assembler Language essential in compiler construction? walter@bytecraft.com (Walter Banks) (2009-02-11)
Re: Is Assembler Language essential in compiler construction? haberg_20080406@math.su.se (Hans Aberg) (2009-02-11)
Re: Is Assembler Language essential in compiler construction? torbenm@pc-003.diku.dk (2009-02-11)
[18 later articles]
| List of all articles for this month |
From: Mike Burrell <mburrel@uwo.ca>
Newsgroups: comp.compilers
Date: Tue, 10 Feb 2009 10:15:00 -0500
Organization: University of Western Ontario
References: 09-02-021
Keywords: assembler, practice
Posted-Date: 11 Feb 2009 05:33:13 EST

On 2009-02-09 05:34:36 -0500, marco.m.petersen@gmail.com said:


> I mean, if you wrote a program that converts code from BASIC to C++
> then calls another compiler to do the compilation process, wouldn't
> that be considered as a compiler?


It depends on what you want to get out of your compiler. A lot of
compilers, especially when they're in the proof-of-concept stage, will
target another language, such as C. If your primary goal in writing
the compiler isn't to worry about the back-end stuff (register
allocation and all those fun things), then it's easier to just target
C, and you get portability to boot.


You will be limited in what you can do if you aren't familiar with
assembly, though.


Cheers,
Mike



Post a followup to this message

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