Assembler in Lex/Yacc
- From: "Sanky" <spamtrap@xxxxxxxxxx>
- Date: 3 Dec 2005 01:28:18 -0800
Hi there,
I was working on an assembler for X64 architecture. I was wondering
what are the tradeoffs in designing an assembler using lex or re2c and
yacc? Why is that handwritten assemblers are more popular than those
developed using lex/yacc? Developing a grammar is the toughest part,
but once you have a grammar ready, I think the rest of the routines are
pretty strightforward? Is it that code generated by Lex/Yacc is not as
efficient?
YASM does get close, but again it resorts to hand written code at some
places.
Is it that Lex/Yacc is an overkill or is that Lex/Yacc are not the
right tools? I'm new to compiler and assembler design, and would be
helpful if anyone can guide.
Thanks!
.
- Follow-Ups:
- Re: Assembler in Lex/Yacc
- From: Waldek Hebisch
- Re: Assembler in Lex/Yacc
- From: toby
- Re: Assembler in Lex/Yacc
- From: Tim Roberts
- Re: Assembler in Lex/Yacc
- From: randyhyde@xxxxxxxxxxxxx
- Re: Assembler in Lex/Yacc
- Prev by Date: help about Boachs,FritzOS(kernel),80386, Assembly, C++ plz!!!!
- Next by Date: Embedded x86 ASM
- Previous by thread: help about Boachs,FritzOS(kernel),80386, Assembly, C++ plz!!!!
- Next by thread: Re: Assembler in Lex/Yacc
- Index(es):
Relevant Pages
|