I love C for its raw speed (although it does have its drawbacks). We should all write more C. With this shell script, you can compile and execute C "scripts" in one go! (Oh yeah, and it works for C++ too.) First of all, I want to clarify why this is not the same as tcc -run. TCC is a compiler. We all know that. TCC will perform its own set of optimizations, just as GCC will perform its own and Clang will perform its own. The purpose of this script is to give a simple front-end to your favorite compiler. I'm a fan of speed, and C definitely offers it. Being able to write a small, fast, and portable C "script" is great. You can pass around a C "script" just like you would a BASH script.

Features

  • c will use whatever $CC is set to
  • Anything you want passed to the compiler, put in quotes as the first argument
  • After adding a shebang, just set the file to executable and it's ready to run
  • Just tack on any extra flags, options, or files you want passed to the compiler
  • The default cache size is set to 5 MB
  • Feel free to submit any ideas, questions, or problems by reporting an issue

Project Samples

Project Activity

See All Activity >

Categories

Compilers

License

MIT License

Follow c

c Web Site

You Might Also Like
Achieve perfect load balancing with a flexible Open Source Load Balancer Icon
Achieve perfect load balancing with a flexible Open Source Load Balancer

Take advantage of Open Source Load Balancer to elevate your business security and IT infrastructure with a custom ADC Solution.

Boost application security and continuity with SKUDONET ADC, our Open Source Load Balancer, that maximizes IT infrastructure flexibility. Additionally, save up to $470 K per incident with AI and SKUDONET solutions, further enhancing your organization’s risk management and cost-efficiency strategies.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of c!

Additional Project Details

Programming Language

Unix Shell

Related Categories

Unix Shell Compilers

Registered

2022-05-24