Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Example compilers [closed]

I'm searching for the source code of a compiler capable of creating Win32 programs from an input program in a programming language (It doesn't matter which, maybe the simpler the better)

Yet I can't find anything right for me and huge compilers like GCC make me extremely confused as they have so many features that I don't know where to start.

  • Is there an OpenSource Win32 micro-compiler for some programming language out there I could take a look at?
like image 516
saf Avatar asked Apr 12 '10 17:04

saf


People also ask

What is Closure compiler?

The Closure Compiler is a tool for making JavaScript download and run faster. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left.

What is J2CL?

Designed, developed, and open-sourced by Google, J2CL is a source-to-source compiler that converts Java to Javascript. J2CL developers say the compiler "enables seamless use of Java in your JavaScript applications."


2 Answers

http://en.wikipedia.org/wiki/List_of_compilers chose ones with License type "open source"

like image 60
Andrey Avatar answered Oct 05 '22 04:10

Andrey


I would suggest picking up a compilers textbook. They explain all the required components of a compiler and usually develop a compiler from start to finish.

I own a copy of Modern Compiler Implementation in Java from my compilers course and I'm quite pleased with it.

like image 42
Ben S Avatar answered Oct 05 '22 05:10

Ben S