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...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

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 751 - 780 of 1320   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
751
... Wrong assumption: I mean real optimizations like loop unrolling and vectorization. ... And what will you do when you run out of registers because you have...
Laurent DESNOGUES
ldesnogu
Offline Send Email
Jan 1, 2007
2:13 pm
752
Hi folks; I've been sitting this one out because I wanted to see what arguments our new poster had and because I was already somewhat ambivalent about the...
Graham Toal
graham_toal
Offline Send Email
Jan 4, 2007
3:32 am
753
I have tried to find some examples of how people have implemented their stack in their virtual machines and unfortunately have not come across many examples...
crancran77
Online Now Send Email
Jan 4, 2007
3:46 pm
754
... Don't take any of this as gospel, I'm just thinking aloud here... 1: are there ever any circumstances when you *don't* know the type/size of all the...
Graham Toal
graham_toal
Offline Send Email
Jan 4, 2007
4:57 pm
755
... I'd generally agree with what Graham said: In most traditional languages you'll know what size your types are, so you can just push that many bytes on the...
Uli Kusterer
witness_of_t...
Offline Send Email
Jan 5, 2007
9:28 am
756
... Since you said that you were making a "very basic compiler" I incorrectly assumed that a "very basic compiler" wasn't about to target the top 10% of the...
idiot1235
Offline Send Email
Jan 5, 2007
5:52 pm
757
By the way, could you supply a working email address please? I was mailing you to say I'd taken you off moderation so that you could post without delays, when...
Graham Toal
graham_toal
Offline Send Email
Jan 5, 2007
6:23 pm
758
... We've been pretty quiet here lately, and our web site suffered some lost files when I had a disc crash without a proper backup, but let me bring you up to...
Graham Toal
graham_toal
Offline Send Email
Jan 5, 2007
10:46 pm
759
... Well 4700 lines is not that short. http://www0.us.ioccc.org/2001/bellard.c No it does not use AST :) This is by the same guy who brought us tcc. Laurent...
Laurent DESNOGUES
ldesnogu
Offline Send Email
Jan 6, 2007
12:13 am
760
I have a question regarding AST's and their common construction as binary trees. The binary tree format makes perfect sense to me in expressions. The binary...
ed_davis2
Offline Send Email
Jan 24, 2007
1:15 pm
761
... I use a different internal way of handling language constructs and expressions, and that works. But if you ask someone else they will tell you that you...
idiot1235
Offline Send Email
Jan 27, 2007
3:27 am
762
... One good reason is that sometimes the compiler is processing the output of another tool. That tool can be more simple minded than a real programmer. -Rich...
Richard Pennington
pennington6809
Offline Send Email
Jan 27, 2007
4:20 am
763
... lines, ... is ... folding. ... tcc. ... Well, it's short, but it doesn't compile, which sort of defeats the purpose....
idiot1235
Offline Send Email
Jan 28, 2007
1:38 am
764
... Another thing that's very easy is constant folding. You can just do that recursively by asking each node to simplify itself. This allows developers to...
Uli Kusterer
witness_of_t...
Offline Send Email
Jan 28, 2007
10:03 am
765
... If your think of a single linked list it is not at all different from a binary tree. Let's assume that statements are right associative. For a sequence of...
Kai Schütz
schuetz.kai@...
Send Email
Jan 28, 2007
12:32 pm
766
... On Unix, add: #include <string.h> #include <stdlib.h> and then run cc -o tcc bellard.c -ld Looks like it was written some time ago in the days of less...
Graham Toal
graham_toal
Offline Send Email
Jan 28, 2007
5:16 pm
767
... or for consistency, this? / \ stmnt1 / \ stmnt2 / \ stmnt3 / \ stmnt4 NIL ... Actually you end up with two data structures, one for expressions and ...
Graham Toal
graham_toal
Offline Send Email
Jan 28, 2007
5:35 pm
768
... A tree can be represented as a list anyway. Of course when I talk about lists, I am talking about *real* lists, LISP anyone? :) Laurent...
Laurent Desnogues
ldesnogu
Offline Send Email
Jan 28, 2007
9:46 pm
769
... Ah yes, lists whose constituent parts are named after unmemorable opcodes of a defunct IBM processor. I much preferred POP2's head and tail. G...
Graham Toal
graham_toal
Offline Send Email
Jan 29, 2007
2:57 am
770
Here is a simple parser and code generator for a subset of the C language. An AST represented as a binary tree is utilized: // parsing functions typedef enum...
Ed Davis
ed_davis2
Offline Send Email
Jan 29, 2007
2:05 pm
771
... The example I used in a previous message produces the following binary tree: / \ NIL / \ stmt4 / \ stmt3 / \ stmt2 / \ NIL stmt1 This tree is built...
Ed Davis
ed_davis2
Offline Send Email
Jan 29, 2007
2:05 pm
772
... If you have the time, how would the example I posted be written in LISP? I've always had a fascination with LISP, and was wondering how that would look....
Ed Davis
ed_davis2
Offline Send Email
Jan 29, 2007
2:16 pm
773
Answering part of my own question, what would parsing code for the following look like: / \ stmt1 / \ stmt2 / \ stmt3 / \ stmt4 EMPTY I think either...
Ed Davis
ed_davis2
Offline Send Email
Jan 29, 2007
3:35 pm
774
... This is sometimes handled by creating a hole in your <syntax tree, AST, expression tree, whatever> for the rhs, and plugging in the value later, probably...
Graham Toal
graham_toal
Offline Send Email
Jan 29, 2007
7:27 pm
775
... I'm not exactly sure what you mean. But, I want to parse the entire program, building an AST, and once it is built for the entire program, generate code...
Ed Davis
ed_davis2
Offline Send Email
Jan 30, 2007
11:56 am
776
... Right, that was the first option. What I meant by the other one is that you parse one (simpler) statement at a time, eg "if (cond) then {" is a statement,...
Graham Toal
graham_toal
Offline Send Email
Jan 31, 2007
3:02 pm
777
... My compiler (a tiny Pascal subset - but it (the Pascal version) can compile itself :-) ) just generates code on the fly. I want to use an AST (in the C...
Ed Davis
ed_davis2
Offline Send Email
Jan 31, 2007
3:51 pm
778
... Another experiment to try... define the output stream to be /dev/null at first, run the compiler, build the tables, work out what is never ...
Graham Toal
graham_toal
Offline Send Email
Jan 31, 2007
5:09 pm
779
Folks, just realized some here may be interested in some more blog postings on my findings about ancilliary areas of writing a compiler/ creating a new...
Uli Kusterer
witness_of_t...
Offline Send Email
Apr 29, 2007
1:49 pm
780
Hi, I'm wondering how I'd best implement exceptions in my compiler (compiles to x86 machine code for 32-bit, in case that matters). It's kind of hard to...
Uli Kusterer
witness_of_t...
Offline Send Email
May 4, 2007
10:22 pm
Messages 751 - 780 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