hi there I have been looking for some time for an easily (not GCC!) retargetable compiler, generating assembly code for RISC processor ISAs from ANSI C. This...
... http://www.cs.princeton.edu/software/lcc/index.html http://www.cs.virginia.edu/~lcc-win32/ I can't think of any that do either, so start thinking which of...
... I don't see why LCC does not fit all your needs... Plus, it is documented in a book (even though it is lcc 3, it is close enough to lcc 4). Laurent...
Hello, I'm writing a lazy interpreter for a functional programming language. I've written my lexical analyzer in Lex, and parser in YACC. I want to generate...
Hi Haifa, Is this a class homework or just a personal project? ... Remember that in YACC, you've got three sections: the declaration, rules and user subroutine...
Hi Raheem, Thanks for the feedback and help. ... It's a personal project! Since what you're writing is an interpreter, ... Actually in order for it to be a...
Hi Haifa, ... Are you saying that what you really want to do is translate code in the language of your grammar into a program in lambda calculus, which is a...
... I actually meant to say "attributes of identifiers" rather than "values of variables" here. That way you symbol table will includes not just varibales, but...
Hiya Raheem (and everyone else) Firstly i can't thank u enough! You're really helping me put this all in perspective :) Ok lazy evaluation is basically...
... You can do lazy evaluation trivially without needing lambda calculus. The latter somewhat requires creating functions on the fly as first-class objects,...
Hi Group. I recently ported Jack's 'Tiny' compiler to C, and added some additional functionality (article published in January's C/C++ Users Journal). Anyway,...
... Pete, I've been looking over your compiler and I see that you've also modified the Tiny language to be (slightly) more C-like than the original which was...
... OK, we're on! That's three people, enough to make a start! I'll write up a little in the group wiki area and we'll see what we can get done starting...
Here's the home page for our compiler-writing competition: http://www.gtoal.com/software/CompilersOneOhOne/CodingCompo It's on a wiki, and you are all invited...
Wow, you guys move quickly! TinC was really a "just for fun" learning exercise, so there's no documented grammar for the language definition, but you're right...
... So *that's* where that operator precedence algorithm came from! I had written it up as folklore, I didn't realise it had ever been used in a serious...
It's interesting tracing things back to their roots. I'm very fond of the work done by "Amazing" Grace Murray Hopper (look up "first compiler" aka A/0 or A0 or...
Hi Guys, I really want to be part of this, but you guys are moving too quickly. Not sure I can keep up, but I'll try ... I've added myself to the wiki, ... ...
... Good show :-) ... Actually, there's no rush. Yahoo's mail screwed up at the weekend, and the posts I made announcing the contest didn't turn up on Friday...
My last try at the Tinc grammar for a while - gotta get to work! tinc = {decls} {procedures} block . procedures = 'procedure' ident '(' formallist ')'...
I have a question about updating the Wiki: ... And you are correct. Both appear to be allowed. So, do I update the Wiki and say this ("Both are allowed"), or...
... I think there is a problem in the expression parser, regarding the handling of unary plus/minus. Here is the original tutorial ... procedure Expression; ...
There's an 'oops' there too - look at line # 1855 ... if (nextreg = -1) S'funny how you always spot these things a year after you wrote it ! I'm sure there'll...
... That's right, the production is wrong. ... Agreed, it is an error. Notice how inside the TopDecls parsing loop it explicitly tests for...
Rainer Thonnes
rainer@...
Mar 21, 2006 1:36 am
631
... Please, update it :-) Make it so that the final text flows smoothly, once we've settled an issue. ... There may be some clearly identifiable bugs in the...
Based on the feedback, I need to quickly point out a couple of things. TinC was based on Tiny 1.1, which is covered in Section 11 of Jack's document. Features...
... I missed the prototypes. We definitely keep them, otherwise any recursion other than self-recursion is impossible. Agree with trashing the 'interrupt'...
... We are, and it's quite fun dissecting an implementation as you learn a lot about it that way. We hope you'll do the same for us when we eventually post...