Slashdot Mirror


Optimizing Stack Based Architectures?

An anonymous reader queries: "I'm currently writing a stack oriented interpreter (*ahem* Managed Code Environment) with complimentary compiler (that will be under MIT license), and was wondering if there have been any advances in stack architecture optimization? Some intense Googling turned up this paper, but it seems a bit dated, and focuses mainly on managing local variables, which is inapplicable to me because my interpreter directly supports local vars. Any thoughts or useful links on the topic would be appreciated."

1 of 31 comments (clear)

  1. Complimentary Compiler by mithras+the+prophet · · Score: 5, Funny
    A complimentary compiler, huh? I agree, after a few frustrating hours with GCC and its nasty little invectives, that would be a great technology to develop...
    [mithras ~/src] alias cc="complimentary_compiler"
    [mithras ~/src] cc myprog.c

    myprog.c:7: In function `main':
    myprog.c:7: compliment: Wow, great job with those open and close braces!
    myprog.c:7: compliment: They really look wonderful, perfectly indented.

    myprog.c:83: In function `calculate_stuff':
    myprog.c:83: compliment: Ingenious coding here.
    myprog.c:83: compliment: Your use of the unused high bits of this array is pretty sweet, nice work.

    myprog.c:125: In function `foo':
    myprog.c:125: error: This line looks like it will be very powerful,
    myprog.c:125: error: but I can't quite figure it out. Perhaps you forgot a semicolon?
    myprog.c:125: error: Don't worry about it, I do that all the time.
    myprog.c:125: error: You've already been so productive today, you deserve a break!
    --
    four nine eighteen twenty-7 thirty-nine forty-7 fiftyeight sixty-nine seventy-9 eighty-8 one-hundred-and-nine one-twenty