When I was generating code for msdos I used to use dynamic linking using Dynamic linkers of my own design. Now that I develop systems for linux and Windows I...
Paul Cockshott
wpc@...
Nov 2, 2006 10:31 pm
741
The above is a project I am about to start. Any input would be welcome. 1) I Use MS Development Studio 2003 2) C# & or C++ No doubt I'll be back with more...
... I code in C# and I'd recommend using the Visual Studio 2005 Express version because it's free and anyone could join in. Not to mention you get better...
... You could also consider leveraging the DotGNU/Portable .NET project. They have a set of tools written in C (including C# compiler). Mono has a set of tools...
Good day to you all, it has been a while since I have explored and posted here and I'm glad to finally be back. Unfortunately in my absence I have gotten a ...
... eventually move ... That's a good idea. ... Tree (AST): Why? It's easier to generate the code as you are parsing it. Do you have any reason for doing this...
... you ... We've covered many reasons for doing so in this group. Generating code as you parse is fine for a non-optimising compiler or just peephole...
Hi folks, a while ago, I started teaching myself Intel assembler (on Mac OS X). I've documented some of my findings in my blog, and since I also experimented...
... Thanks, I'll dig down to see what I can find. Because I honestly can't understand that there are so large advantages to doing that. Probably if you going...
... Let me see if I understood you correctly: you generate code on the fly while parsing, right? The very basic optimizations need control-flow and data-flow ...
... I assume you want to use a register for 'i'? It doesn't matter if 'i' is modified in the loop. But it can be done in two ways. The first one, simple loop...
... 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...
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...
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...
... 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...
... 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...
... 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...
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...
... 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...
... 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...
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...
... 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...
... 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...
... 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...
... 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@...
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...
... or for consistency, this? / \ stmnt1 / \ stmnt2 / \ stmnt3 / \ stmnt4 NIL ... Actually you end up with two data structures, one for expressions and ...