Common Questions and Answers about CCshTM, "The Bourne Shell Compiler"

  1. What exactly is CCsh?
  2. Who would need to use CCsh?
  3. Why would system performance be increased?
  4. What other benefits does CCsh provide?
  5. What is the speed increase I can expect from using CCsh?
  6. Will CCsh be useful to the average user in a normal day's activity?
  7. How much does CCsh cost?
  8. How much does technical support cost?
  9. After a shell script has been compiled, can I bring the generated C code to other machines?
  10. What does the runtime library do for me?
  11. So, does this mean I need a runtime library for every machine?
  12. Can CCsh run on any computer system?
  13. Will CCsh be ported to other systems?
  14. Will this include Berkeley UNIX systems?
  15. In summary then, why is CCsh beneficial?
  16. Do you have a question?

What exactly is CCsh?

CCsh is a high quality programming tool that will transform your current Bourne Shell code into C language source code. The C code is then transparently compiled into an executable binary file by your C compiler.

In addition to this CCsh Faq, you can find various information about CCsh online:

Back to Top

Who would need to use CCsh?

Programmers and system administrators. Programmers would use it to turn their shell code or prototyped projects into C, and subsequently into an executable. System Administrators would use it to boost system performance with their current shell scripts and add power to newly developed shell scripts.
Back to Top

Why would system performance be increased?

Since the shell is an interpreter, execution is slow. When a script is able to run in machine-readable form it will be many times faster. In addition, the a.out "sticky-bit" attribute can be set on the executable file output by CCsh. Therefore, system load from many perspectives can be reduced.
Back to Top

What other benefits does CCsh provide?

Source code protection, because the original shell script need not be readable after it has been compiled. Also, the a.out "setuid-bit" can be set on the resulting executable file. Is this useful for programmers who don't know C? Certainly! As long as you have a shell script, CCsh does the rest.
Back to Top

What is the speed increase I can expect from using CCsh?

Anywhere from two to ten times the speed of the original shell script.
Back to Top

Will CCsh be useful to the average user in a normal day's activity?

Yes. Most UNIX users develop and use a library of their own customized shell scripts as the years go by. Many of those scripts would be worth compiling through CCsh.
Back to Top

How much does CCsh cost?

As CCsh is available for such a diversity of machines, please email us for current pricing and for details on your specific machine. Note that many ports are done electronically.
Back to Top

How much does technical support cost?

Nothing! Tech support is obtained free of charge to licensed and registered customers, by contacting us. That's as long as you use it!
Back to Top

After a shell script has been compiled, can I bring the generated C code to other machines?

Yes, but only if you have purchased a runtime library on the second machine and recompiled the generated C code.
Back to Top

What does the runtime library do for me?

The library contains many routines which support the execution of programs generated from the compiler, thus making the generated code more reliable.
Back to Top

So, does this mean I need a runtime library for every machine?

Maybe. When you invoke CCsh it produces two files: a C language equivalent and a binary equivalent. You may use the binary equivalent on as many compatible machines as you wish. If you opt to bring the C code to any machine other than the original, then you must purchase additional runtime libraries. In general use (use on one machine), this will not affect you.
Back to Top

Can CCsh run on any computer system?

CCsh runs on all UNIX compatible machines including all UNIX 386's, LINUX/ELF, SCO, Solaris/SPARC and many others.
Back to Top

Will CCsh be ported to other systems?

Yes, from time to time we will initiate ports to new platforms. Email us for a current list of machines.

Don't hesitate to email us to ask for a port. Many ports can be done electronically.

Back to Top

Will this include Berkeley UNIX systems?

Yes. Since September 1992, CCsh has been available on BSD-based systems such as SunOS. Please contact us about new releases.
Back to Top

In summary then, why is CCsh beneficial?

Since the shell is a full programming language that is both interactively accessible and easy to use, it offers a powerful environment for those needing fast prototyping techniques and access to a large command set. The shell, though, does have limitations. Most notably are lack of speed and "hogging" of system resources.

In addition, many applications that were prototyped in the shell will still need to be hand-coded in C. This is both painful and error-prone. CCsh will automate this conversion resulting in an increase in program speed, security, and flexibility. All without the need to learn any new skills!

Back to Top

Do you have a question?

Do not hesitate to email us if you have any other questions or concerns you would like to see covered.
Back to Top

Comeau Computing.
Copyright © Comeau Computing. All rights reserved.
Revised: July, 2013.