Portable scripting language for a multi-server admin?

后端 未结 7 1815
误落风尘
误落风尘 2021-02-14 03:44

Please Note: Portable as in portableapps.com, not in the traditional sense of a language that can be used on multiple architectures or operating systems. Whoeve

7条回答
  •  無奈伤痛
    2021-02-14 04:08

    Looking at wikipedia's exhaustive list of portable software There's Tiny C compiler, again on Wikipedia here, and its own homepage here.

    To summarize by quoting from wikipedia's list of features:

    • Small - can compile and execute C code everywhere, for example on rescue disks (about 100KB for x86 TCC executable, including C preprocessor, C compiler, assembler and linker).
    • Fast - tcc generates optimized x86 code. No byte code overhead. It compiles, assembles and links about 9 times faster than GCC.
    • Any C dynamic library can be used directly. TCC is heading towards full ISOC99 compliance. TCC can of course compile itself.
    • Includes an optional memory and bound checker. Bound checked code can be mixed freely with standard code.
    • Compile and execute C source directly. No linking or assembly necessary. Full C preprocessor and GNU-like assembler included.
    • C script is supported: just add '#!/usr/local/bin/tcc -run' at the first line of your C source, and execute it directly from the command line.
    • With libtcc, you can use TCC as a backend for dynamic code generation.
    • Few dependencies. It includes its own hand-written lexer, and it is implemented using a recursive descent parser. Thus, building TCC requires few other libraries.
    • Its LGPL license permits anyone to use, modify, and/or redistribute the software, and it can be used to develop either open source or proprietary software.

    Hope this helps and would be of use, Best regards, Tom.

提交回复
热议问题