Search the web
Sign In
New User? Sign Up
compilers101 · Compilers 101
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 1 - 30 of 1320   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
1
Hello, I did a little bit of work on a simple CSE demo last night. All that's left to do is the actual CSE/code generation ;) Right now I've got the grammar ...
Bart
bart_trzynad...
Offline Send Email
Dec 18, 2002
5:55 pm
2
Hello, I've attached a yacc grammar for a simple expression parser which emits code with CSE. It builds a DAG using n-ary trees (with pointers, not the cell...
Bart
bart_trzynad...
Offline Send Email
Dec 21, 2002
12:28 am
3
... I would like to take this moment to introduce myself (to those who were not part of dynarec.com's mailing list - or those that missed the three posts I...
Evan Clarke
evan_clarke2002
Offline Send Email
Dec 21, 2002
4:23 pm
4
... description on ... along ... I run another list for a historical project to recover lost software written in the early days of my old University,...
Graham Toal <gtoal@...>
graham_toal
Offline Send Email
Dec 21, 2002
5:12 pm
5
Sorry for the late reply, I wanted to compile and try your code first. Input: a = 3; b = a; c = d = e = 2 * 3; 1 + 2 * 3 / a; Code: a = 3 b = a T0 = 2 * 3 e =...
Graham Toal
graham_toal
Offline Send Email
Dec 22, 2002
4:59 am
6
... Not only that, but it should also work in those situations where a variable is modified: a = c * d; b = c * d; c = 2; e = c * d; c*d is only a common...
Bart
bart_trzynad...
Offline Send Email
Dec 22, 2002
6:56 am
7
... I'm writing a simple C compiler (a subset of the language, actually.) Currently, the lexer is pretty much complete and I'm now working on the yacc grammar....
Bart
bart_trzynad...
Offline Send Email
Dec 22, 2002
7:00 am
8
... Grrr. Yahoo stores it properly and it even looks OK when you look at it in the moderators window or the preview window, but when you read it in the group...
Graham Toal <gtoal@...>
graham_toal
Offline Send Email
Dec 22, 2002
7:01 am
9
... Yeah, and I just realized that my alternate example also relies on spacing ;) I'll try to stick to a LISP-like form when posting this kind of stuff to make...
Bart
bart_trzynad...
Offline Send Email
Dec 22, 2002
7:12 am
10
... were ... three ... So what choices have you already made, Evan? Have you decided which language you're going to compile? How much of it to implement?...
Graham Toal <gtoal@...>
graham_toal
Offline Send Email
Dec 23, 2002
5:27 am
11
... Yeah - maybe I forgot to mention a few things. ... I am currently thinking a small subset of C at this stage. I am going to scrap what I started (absolute...
Evan Clarke
evan_clarke2002
Offline Send Email
Dec 23, 2002
5:38 am
12
... How does Imp77 compare to C? C as a language doesn't actually define any I/O constructs and can be viewed as a language which does nothing more than...
Bart
bart_trzynad...
Offline Send Email
Dec 23, 2002
6:06 am
13
... If you know some other processor architecture well, perhaps you could generate code for it? X86 is definitely the most useful if you're running an X86...
Bart
bart_trzynad...
Offline Send Email
Dec 23, 2002
6:29 am
14
... .NET and the java bytecode would both give you portability, though going to a real machine might be more fun, in the sense that you get real-machine...
Graham Toal
graham_toal
Offline Send Email
Dec 23, 2002
4:34 pm
15
Hi, My name is Marcelo, I'm from Brazil, and I'm currently working on 2 projects: one of them is a game, the other one is a compiler. I'd like to know where I...
dosgrave2000 <dosgrav...
dosgrave2000
Offline Send Email
Dec 23, 2002
5:17 pm
16
I'll move this over here... ... I kind of slipped that under the door but I'd been meaning to talk to you about this anyway... It occurred to me, after playing...
Graham Toal
graham_toal
Offline Send Email
Dec 23, 2002
5:24 pm
17
... Well, it's roughly at the same level; it would be just as easy to convert from C to Imp as from Imp to C; it's a closer mapping than say Pascal to C. ... ...
Graham Toal
graham_toal
Offline Send Email
Dec 23, 2002
5:39 pm
18
... Welcome Marcelo! That's a perfectly on-topic question, although personally I can't recommend any specific document on parsing as being definitely worth a...
Graham Toal
graham_toal
Offline Send Email
Dec 23, 2002
6:16 pm
19
... compiler ... Search for "Catalog of Free Compilers and Interpreters"...
Graham Toal <gtoal@...>
graham_toal
Offline Send Email
Dec 23, 2002
6:18 pm
20
... I didn't actually explain how to do this the 'non-naive' way... It's pretty simple actually; there are two obvious ways - they're equivalent I guess: ...
Graham Toal
graham_toal
Offline Send Email
Dec 23, 2002
8:58 pm
21
In Bart's code to do CSE, we haven't yet considered the ramifications of calling functions with side-effects (actually not just functions - memory-mapped...
Graham Toal
graham_toal
Offline Send Email
Dec 23, 2002
9:28 pm
22
... I'll have to ask this question: How much do you want to learn? Do you want to spend time writing parsers that won't be used in your project (for practice...
Bart
bart_trzynad...
Offline Send Email
Dec 24, 2002
1:30 am
23
Hello, I've added constant folding to the CSE demo as well as source reordering (which reorders the sources to + and * operators according to a fixed set of...
Bart
bart_trzynad...
Offline Send Email
Dec 24, 2002
1:35 am
24
... It does sound interesting, but I'd like to forge on with my normal compiler because I'd really like to get something working that can generate machine ...
Bart
bart_trzynad...
Offline Send Email
Dec 24, 2002
1:53 am
25
... addition. It ... it ... down the tree. ... redundant ... output ... Whoa there! Doing anything "multiple times until nothing can be done further" in...
Graham Toal <gtoal@...>
graham_toal
Offline Send Email
Dec 24, 2002
4:11 am
26
... No, that's not what I meant. Constant folding is performed in one walk of the tree. static void FoldConstants(DAG **pnode) { DAG *new, *node; int i,...
Bart
bart_trzynad...
Offline Send Email
Dec 24, 2002
5:11 am
27
... Actually, if I assigned temporary variables to nodes as they were generated (MakeNode()), I could do the reordering automatically based on only a few ...
Bart
bart_trzynad...
Offline Send Email
Dec 24, 2002
5:21 am
28
... out, but ... generated ... only a few ... with higher ... higher temp. var ... Yep, that's what I wasted 200 lines trying to say :-) Here's another one: ...
Graham Toal <gtoal@...>
graham_toal
Offline Send Email
Dec 24, 2002
6:16 am
29
... generated ... only a few ... higher temp. var By assigning a temp you're effectively just numbering the node. The temp doesn't have to actually be used as...
Graham Toal <gtoal@...>
graham_toal
Offline Send Email
Dec 24, 2002
6:31 am
30
... What happens when something is reassigned and what was once a common sub-expression no longer can be considered one? Would you have to take a new node from...
Bart
bart_trzynad...
Offline Send Email
Dec 24, 2002
7:10 am
Messages 1 - 30 of 1320   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help