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...
Show off your group to the world. Share a photo of your group with us.

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 1291 - 1320 of 1320   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
1291
... You're on the right track, except that it's even more embarrassing: Basic Conceptual Misunderstanding. Are you old enough to have senior moments? :-) ... ...
Rainer Thonnes
rainer@...
Send Email
May 19, 2009
4:15 pm
1292
Thanks Rainer. I'll work on that this evening. Then I need to check where else the same pattern applies. I know it'll also affect multiple and divide, which...
Graham Toal
graham_toal
Offline Send Email
May 19, 2009
4:40 pm
1293
... It's not so much mixing add with subtract (or multiply with divide) that's the problem (otherwise you could get over it by giving add and subtract ...
Rainer Thonnes
rainer@...
Send Email
May 19, 2009
10:03 pm
1294
... Done, at least for + and -. Still to do for * and /. No grammar change needed, just a tweak to how the tree is assembled. This is for a student exercise...
Graham Toal
graham_toal
Offline Send Email
May 20, 2009
4:57 am
1295
proof of the pudding... gtoal@linux:~/gtoal.com/compilers101/intro/gtoal/interp> cat recurse.t /* simple recursion test */ proc rprintnum(d) rprintnum(d/10) if...
Graham Toal
graham_toal
Offline Send Email
May 20, 2009
5:07 am
1296
[this will look familiar to comp.compilers readers] I am looking to create what I would call a "companion language" to C. It would basically compile to .o...
Marco
prenom_nomus
Offline Send Email
May 25, 2009
6:24 pm
1297
... The concept of multiple compilers for different languages sharing a common set of run-time conventions (procedure calling, library linking/loading, symbol...
Graham Toal
graham_toal
Offline Send Email
May 25, 2009
10:35 pm
1298
... I am quite familiar with many languages but certainly don't know the existence of every one. I took a compiler class way back in the 80's (we wrote our toy...
Marco
prenom_nomus
Offline Send Email
May 30, 2009
7:26 pm
1299
... I think it would be worth trying in a language like python and/or ruby. Ive written lexers and parsers in python and it's quite nice, especially befause...
timmeh@...
deltacentauri
Offline Send Email
May 31, 2009
7:07 am
1300
Has anyone here used: 1) Rex and Racc (Ruby Lex & Yacc) 2) PLY (Python Lex-Yacc) 3) others like ANTLR or is hand-written the way to go...
Marco
prenom_nomus
Offline Send Email
Jun 2, 2009
2:04 pm
1301
I can't say "used" but I did play around with ANTLR enough to think that it looked quite good. My opinion is that you should write your own parser generator at...
Graham Toal
graham_toal
Offline Send Email
Jun 2, 2009
2:43 pm
1302
... Sorry these aren't as well organised as they could be, but maybe you'll find something helpful in here: http://www.gtoal.com/compilers101/compilers.html G...
Graham Toal
graham_toal
Offline Send Email
Jun 2, 2009
2:51 pm
1303
... http://www.devincook.com/GOLDParser/...
Graham Toal
graham_toal
Offline Send Email
Jun 2, 2009
3:14 pm
1304
I've used PLY a number of times, it's a reasonable lexer and parser generator and pretty easy once you get the hang of it. It uses rules built into pydoc...
timmeh@...
deltacentauri
Offline Send Email
Jun 2, 2009
11:27 pm
1305
Just to bring folks up to date on what I've been puttering with lately, I took the compiler I started on last year for our coding competition, and have been...
Graham Toal
graham_toal
Offline Send Email
Jun 3, 2009
4:27 pm
1306
I'm working on signed arithmetic comparisons at the moment. I have a simple procedure that prints a signed number. It tests to see if the parameter is < 0,...
Graham Toal
graham_toal
Offline Send Email
Jun 3, 2009
9:00 pm
1307
I don't think you've misunderstood the instructions. My suspicion is that nasm has mixed up the opcodes. Get it to show you the code listing to confirm. SETL...
Rainer Thonnes
rainer@...
Send Email
Jun 3, 2009
11:48 pm
1308
... Just testing. :-) No, it's not that. SETL AL will make AL=1 if the "less than" comparison was true. If the CMP operands were equal, as when D is zero, the...
Rainer Thonnes
rainer@...
Send Email
Jun 4, 2009
2:44 am
1309
... Very, very neat, Graham. I'd join you, but I'm currently working on porting a network stack and writing an operating system from the ground up. Seriously. ...
Neil Bradley
cneilbradley
Offline Send Email
Jun 4, 2009
2:45 am
1310
... I had just confirmed that as your mail came in! diff test2a.t test2b.t: 2c2 < if d < 0 ... diff test2a.S test2b.S: 25c25 <...
Graham Toal
graham_toal
Offline Send Email
Jun 4, 2009
3:39 am
1311
... Indeed. ... Heh, it had me up half the bloody night, since I just had to get to the bottom of it once I realised that my initial diagnosis was wrong. ... ...
Rainer Thonnes
rainer@...
Send Email
Jun 4, 2009
10:06 am
1312
... I'm struggling to remember why. It wasn't an arbitrary choice but I've forgotten the reason now. I think it may have been because it was simpler for...
Graham Toal
graham_toal
Offline Send Email
Jun 4, 2009
10:40 am
1313
... I've been doing something similar this week, and what I've learned is that in the x86 world, there are *many* different calling conventions. It looks like...
Graham Toal
graham_toal
Offline Send Email
Jun 5, 2009
1:15 pm
1314
It took about 2 days of programming and 2 days of debugging (one of which was Rainer's :-) ) to get an x86 code generator working for the toy compiler I wrote...
Graham Toal
graham_toal
Offline Send Email
Jun 6, 2009
2:40 pm
1315
... Anyone elsein this group used this?...
Marco
prenom_nomus
Offline Send Email
Jun 6, 2009
3:02 pm
1316
... Graham, as usual, you are THE MAN. This is really cool! For extra bonus points, you should work in register calling conventions. ;-) -->Neil ... C. Neil...
Neil Bradley
cneilbradley
Offline Send Email
Jun 6, 2009
6:02 pm
1317
... When I do a native code generator, I'll do that and throw all the optimising tricks at it, but as long as I'm treating the x86 as a simple stack machine,...
Graham Toal
graham_toal
Offline Send Email
Jun 6, 2009
8:10 pm
1318
... next development - I'm using the stack-based code as an intermediate code from which to generate more traditional x86 instructions in a load/store format;...
Graham Toal
graham_toal
Offline Send Email
Jun 11, 2009
7:07 pm
1319
Don't think I've seen this one mentioned on the group before. distributed free at the author's site in pdf format: ...
Graham Toal
graham_toal
Offline Send Email
Jul 22, 2009
1:47 am
1320
2009/7/22 <compilers101@yahoogroups.com> ... This is also a comprehensive compiler textbook: "Basics of Compiler Design" Torben Ægidius Mogensen available...
Tom Crick
tomcrick1981
Offline Send Email
Jul 22, 2009
11:31 am
Messages 1291 - 1320 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