Find the answer to your Linux question:
Results 1 to 3 of 3
Is it possible to convert C code or C++ to javascript? If so, where do I find a converter?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! heyyeh's Avatar
    Join Date
    Aug 2008
    Posts
    71

    [SOLVED] Convert C to javascript


    Is it possible to convert C code or C++ to javascript?

    If so, where do I find a converter?

  2. #2
    Linux Newbie danielsmw's Avatar
    Join Date
    Nov 2006
    Location
    Clemson, SC / Charleston, SC
    Posts
    110
    It is generally the case that C code will compile in C++, although there are cases where slight modifications will be necessary. I have no idea about translating C into Javascript; their usages are so different that I can't imagine why you would want to. However, GWT does provide a way to translate Java into Javascript, and there are probably C -> Java translators out there if you really needed to do that. It would be messy, though, and highly inadvisable.
    Registered Linux User: #479567
    Asking a question? Read this page first.
    Now... sudo make me a sandwich.
    ratiocinativeroot.blogspot.com

  3. #3
    Just Joined! heyyeh's Avatar
    Join Date
    Aug 2008
    Posts
    71
    I was told that Javascript won't write to a file on the server's machine. Therefore, I must not even TRY to convert C to Javascript. So, I'll just...Mark this solved.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •