What's new

Web C Compiler written in Javascript - Produces PEs for Windows (exes)

  • Thread starter teh1337
  • Start date
  • Views 2,947
teh1337

teh1337

Some call me the Dear Leader-most just say teh1337
Experienced Veteran Programmer Frame In Gold
Messages
1,555
Reaction score
2,224
Points
375
Sin$
0
So, I have been gone for a while, been takin this who programming thing more seriously- and ended up writing a C Compiler + x86 Assembler in C++. A few days ago I figured, what the f***, I'll port this to javascript, and I did:
XsEzitH.png

http://cf.gy/ccjs/

Note:
This doesn't support many of the features of the C language, my goal is to make it C99 compliant, but thats a long way from where I am now. This is still capable of making relatively advanced programs.
 
sgt frankieboy

sgt frankieboy

Enthusiast
Messages
722
Reaction score
140
Points
125
Sin$
7
Nice! Looks pretty impressive.
 
Last edited:
Fire30

Fire30

Seasoned Member
Messages
7,222
Reaction score
2,364
Points
635
Sin$
0
I really like this idea, unfortunately when I tried to compile the code my browser froze and I had to exit out. All I did was add a printf statement in the nevergonna loop and then incremented nevergonna.
 
Official Se7ensins

Official Se7ensins

Enthusiast
Messages
727
Reaction score
194
Points
125
Sin$
0
Wtf.... Idk how? U just wanted to? OMG

What he explained here:
Teh1337 said:
So, I have been gone for a while, been takin this who programming thing more seriously- and ended up writing a C Compiler + x86 Assembler in C++. A few days ago I figured, what the ****, I'll port this to javascript, and I did
really gives you inspiration, no? After seeing this post, time and time again, (I have absolutely no programming background), I still have yet to understand what this is, although I have now recently started looking at some online tutorials on C++.

Now, what I'm trying to say (what I originally tried to point out with the quote) is that the reason Carter is able to create something like this is not because some have quoted:
Carter fanboy said:
Oh my gawd, smartest 15/16 year old!!!

No, this is because Carter had transitioned from a point in which he was learning (Call of Duty modding etc.), to a mental state where he was able to think and create things himself; "taking this whole programming thing a little more seriously" correctly correlates to what I am saying.

If you didn't undertstand, please check this video out on Jason Barnett - it really inspired me, and helped me a lot to think logically.
Also gave me another view on this whole "programming thing" as Carter said in the beginning of his post. :smile:

Video
 
Xeren

Xeren

♦♦♦ God Complex ♦♦♦
Legendary Veteran Programmer Modder
Messages
5,668
Reaction score
2,107
Points
795
Sin$
0
What he explained here: really gives you inspiration, no? After seeing this post, time and time again, (I have absolutely no programming background), I still have yet to understand what this is, although I have now recently started looking at some online tutorials on C++.

Now, what I'm trying to say (what I originally tried to point out with the quote) is that the reason Carter is able to create something like this is not because some have quoted:


No, this is because Carter had transitioned from a point in which he was learning (Call of Duty modding etc.), to a mental state where he was able to think and create things himself; "taking this whole programming thing a little more seriously" correctly correlates to what I am saying.

If you didn't undertstand, please check this video out on Jason Barnett - it really inspired me, and helped me a lot to think logically.
Also gave me another view on this whole "programming thing" as Carter said in the beginning of his post. :smile:

Video

All this does is compile C code to a binary executable, or in simpler terms, turns your code into an application.
 
Official Se7ensins

Official Se7ensins

Enthusiast
Messages
727
Reaction score
194
Points
125
Sin$
0
All this does is compile C code to a binary executable, or in simpler terms, turns your code into an application.


:confused: Ah. See, I have no programming experience and seeing how XeX_Golden was astonished on how he was able to do this, I gave him what I thought may have happened.
 
Jakes625

Jakes625

Enthusiast
Messages
58
Reaction score
21
Points
55
Sin$
7
So, I have been gone for a while, been takin this who programming thing more seriously- and ended up writing a C Compiler + x86 Assembler in C++. A few days ago I figured, what the ****, I'll port this to javascript, and I did:
XsEzitH.png

http://cf.gy/ccjs/

Note:
This doesn't support many of the features of the C language, my goal is to make it C99 compliant, but thats a long way from where I am now. This is still capable of making relatively advanced programs.


My Code didn't compile lel..

anyway.. If you were to make a C compiler in C++ that is remarkable on it's own. By god.. That's a lot of work especially after parsing and getting the pre-processor correctly, etc. damn props.
 
Chris7S

Chris7S

Nerd by definition, programmer by trade
Grammar Nazi Chatty Kathy Seasoned Veteran
Messages
1,506
Reaction score
490
Points
515
Sin$
7
That looks awesome man! I am glad you added color variation for the syntax. I created a compiler in C sharp and it was a very fun application to create! 
Off Topic - It is good to see you back on the forums man! I have missed seeing your releases!
 
Top Bottom
Login
Register