Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-8081-120121-160161-200201-240241-280281-320321-360361-400401-440441-480481-520521-560561-600601-640641-680681-720721-760761-800801-840841-880881-920921-960961-10001001-

Writing a compiler frontend

Name: Anonymous 2009-03-19 22:24

So I'd like to hack up a quick and dirty compiler for this test language of mine, what is good to use for a backend?

LLVM is looking a lot cleaner than  GCC, at least, and isn't infested by GNU AIDS, but it looks like I'd have to do more of the compiling process myself to get a LLVM language representation. (I think I'd be done when I handed over the GENERIC or GIMPLE to the GCC backend?)

Does any of you retards have anything to say about these, and are there any other open source compilers I should look at?

Name: Anonymous 2009-03-19 22:27

Make a Python compiler that compiles Ruby

Name: Anonymous 2009-03-19 22:29

>>1
Write an interpreter or a non-optimizing compiler first. The latter is easy to do, and there are a couple good tutorials out there.

You should be intimately familiar with your target language, at any rate, whether that's assembler or a VM bytecode.

Name: Anonymous 2009-03-19 22:56

Compile it down to Lisp code (or another language, if you're a fag).

Name: Anonymous 2009-03-20 0:00

[b]Use Haskell nomads and a combinator library.[/b]

Name: Anonymous 2009-03-20 0:02

>>5
FUCK

My dog just died ;_;

Name: Anonymous 2009-03-20 0:26

Compile down to java bytecode. Clojure does this and it works quite well.

Name: Anonymous 2009-03-20 1:31

>>1
If we are retards, how will we know about anything like this.

Name: Over 1000 Thread 2009-03-20 1:43 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: Anonymous 2009-07-04 23:35

     __/二二二\___
  /○     |[   ]|    ○\
  |────┏━━┓────|
  |━━━┓┃┏┓┃┏━━━|
lol. |(´∀`)┃┃┃┃┃┃(・∀・)| HERE COMES THE /lounge/ TRAIN!
  |━━━┛┃┗┛┃┗━━━| CHOO CHOO
  |────╂──╂────|
  |        ┃    ┃        |
  |        ┃    ┃        |
  | ●     ┃    ┃     ● |
   |  ①   ┃    ┃   ①  |
   |___ .二二二. ___|
    │    │[=.=]|    |
    └─────────┘
      ─//────\\─
    ─//──────\\─
 ─ // __∧_∧_   ──\\─
─//─ |( ^д^ )| </prog/
//── |\⌒⌒⌒\────\\─
/─── \ |⌒⌒⌒~|  ────\\─                             

Name: Over 1000 Thread 2009-07-04 23:35 Over 1000

This thread has over 1000 replies.
You can't reply anymore.