GithubHelp home page GithubHelp logo

stephenturner / shc Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 136 KB

shc - Generic shell script compiler

Home Page: http://www.datsi.fi.upm.es/~frosal/

License: GNU General Public License v2.0

Shell 2.66% C 97.34%

shc's Introduction

Modified from: http://www.datsi.fi.upm.es/~frosal/

Purpose:

	A generic shell script compiler. Shc takes a script, which is
	specified on the command line and produces C source code. The
	generated source code is then compiled and linked to produce a
	stripped binary executable. Use with care.

Building:

	Just do a "make"


Testing:

   Try:	 "make test" 
    or:  "shc -v -f match"  then  "match.x sh"

	Caveat emptor: see Copyright

	The results look fine to me, but I havn't used this in anger, but
	the author has used shc for his work widely over SunOS, Solaris and
	Linux, and done some testing on Irix and HPUX. 

	We tested it on a few SMALL ksh scripts - big tasks should probably
	be written in C in the first place (see _SC_ARG_MAX below)!


Bugs:

	The one (and I hope the only) limitation using shc is the
	_SC_ARG_MAX system configuration parameter.

	It limits the maximum length of the arguments to the exec function,
	limiting the maximum length of the runnable script of shc.

	!! - CHECK YOUR RESULTS CAREFULLY BEFORE USING - !!


Archived at: ftp://hpux.csc.liv.ac.uk/hpux/Languages/shc-2.4a
Archived by: [email protected]

Author:  Francisco Rosales Garcia
--------------------------------------------------------------------
 Francisco Rosales García <[email protected]>    TEL: +341 336 73 80
 http://www.datsi.fi.upm.es/~frosal            FAX: +34 1 336 73 73
 Departamento de Arquitectura y Tecnología de Sistemas Informáticos
 Facultad de Informática. Universidad Politécnica de Madrid. España
--------------------------------------------------------------------

shc's People

Contributors

stephenturner avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

shangm2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.