[removed] Standalone compiler or interpreter for Windows?

前端 未结 9 737
半阙折子戏
半阙折子戏 2021-02-05 18:19

What are the JavaScript compilers or interpreters available for Windows?

I read the book Eloquent JavaScript recently.

9条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-05 18:53

    Nobody has mentioned yet, window's own javascript compiler: http://msdn.microsoft.com/en-us/library/vstudio/7435xtz6(v=vs.100).aspx

    Microsoft (R) JScript Compiler version 8.00.50727
    for Microsoft (R) .NET Framework version 2.0.50727
    Copyright (C) Microsoft Corporation 1996-2005. All rights reserved.
    
    jsc [options]  [[options] ...]
    
                             JScript Compiler Options
    
                               - OUTPUT FILES -
      /out:              Specify name of binary output file
      /t[arget]:exe            Create a console application (default)
      /t[arget]:winexe         Create a windows application
      /t[arget]:library        Create a library assembly
      /platform:     Limit which platforms this code can run on; must be x86, Itanium, x64, or anycpu, which is the default
    
                               - INPUT FILES -
      /autoref[+|-]            Automatically reference assemblies based on imported namespaces and fully-qualified names (on by default)
      /lib:              Specify additional directories to search in for references
      /r[eference]: Reference metadata from the specified assembly file
                               : [;...]
    
                               - RESOURCES -
      /win32res:         Specifies Win32 resource file (.res)
      /res[ource]:       Embeds the specified resource
                               : [,[,public|private]]
      /linkres[ource]:   Links the specified resource to this assembly
                               : [,[,public|private]]
    
                               - CODE GENERATION -
      /debug[+|-]              Emit debugging information
      /fast[+|-]               Disable language features to allow better code generation
      /warnaserror[+|-]        Treat warnings as errors
      /w[arn]:          Set warning level (0-4)
    
                               - MISCELLANEOUS -
      @              Read response file for more options
      /?                       Display help
      /help                    Display help
      /d[efine]:      Define conditional compilation symbol(s)
      /nologo                  Do not display compiler copyright banner
      /print[+|-]              Provide print() function
    
                               - ADVANCED -
      /codepage:           Use the specified code page ID to open source files
      /lcid:               Use the specified LCID for messages and default code page
      /nostdlib[+|-]           Do not import standard library (mscorlib.dll) and change autoref default to off
      /utf8output[+|-]         Emit compiler output in UTF-8 character encoding
      /versionsafe[+|-]        Specify default for members not marked 'override' or 'hide'
    

    There are usually a couple of copies lying around on any windows install, but they are not usually in the path, so you have to find them.

    The compiler is capable of compiling javascript files into executables that can run on any windows machine with .NET installed.

提交回复
热议问题