stephenturner / shc Goto Github PK
View Code? Open in Web Editor NEWshc - Generic shell script compiler
Home Page: http://www.datsi.fi.upm.es/~frosal/
License: GNU General Public License v2.0
shc - Generic shell script compiler
Home Page: http://www.datsi.fi.upm.es/~frosal/
License: GNU General Public License v2.0
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 --------------------------------------------------------------------
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.