[A small compiler script for C with GCC]

C++ Added on 15/10/2012

One of my favourite classes at the moment is the one where they teach us C. Knowing C already, it is a nice relaxation for Monday morning.

We usually build small C programs that one can compile straight from the command line. This involves calling the GCC compiler with some arguments and then running the program. I therefore built myself a small script that can do this automatically. It will run under Mac OS or Linux.

You can download the build.sh file and put it to a folder that contains your .c file. The script can then be used by running

./build.sh myFileName

where myFileName is name of the .c file without its extension.

The compiled program will be placed into a newly created 'build' folder and called myFileName.out by default. You can change the output file name by using

./build.sh myFileName myOutputFileName

where myOutputFileName is a file name without its extension.

{Please enable JavaScript in order to post comments}

The Centralised Mindset and Complexity Science

Humans tend to explain decentralised phenomena as being caused by a single entity. This way of thinking is often referred to as 'the centralised mindset'. Several authors propose that using programming environments where creation of decentralised agent-based systems is easy...

Starting my PhD Next Week

I have finally finished making my studio in Southmapton at least decently homey as I am starting my PhD programme on Tuesday. I met some of my classmates yesterday (Saturday) during a barbeque and I am very excited about our future discussions and beer drinking.

My First Journal Publication

After working on it for quite a long time, my paper titled Ultrastable Neuroendocrine Robot Controller was finally accepted for publication in Adaptive Behaviour.

Stardust Colonies

Alien farm has officially become Stardust Colonies, after a game name poll I did on Facebook some time ago. The web site will launch soon so that people can read more about the game and join alpha testing...

Ultrastable Neuroendocrine Robot is born

I have finally put a beginning of an artificial brain to my Ultrastable Neuroendocrine Robot - UNER... my lego robot can now measure inputs from its 3 front proximity sensors and individual cells in its brain get activated when it sees something

NXC UserInteraction Library

The User Interaction (UIn) Library helps you create standard user interfaces (multi-line aligned texts, buttons, menus, etc.) and capture user actions on the NXT brick. The library works with the intelligent brick buttons and keeps all your sensor ports free for your program to use.