/c_code

A repository with some C code, this is a personal practice responsibility. An is only used for reference.

Primary LanguageCMIT LicenseMIT

mcs logo

GitHub repo size APM

Introduction

A project that was aimed at myself where i practiced C programing. The goal was to move down in the technology ladder to low level programing. I wish to program my own hardware in the future so that I can develop IoT devices. Any one who wishes to read contribute or review the code and provide suggestion is welcome to do so.

Table of Contents

Getting started

Welcome to my practice repository where i have stored some easy simple C code that you can view copy run or edit for what every reason you may wish. The setup of the project is really easy and you won't need much time to get up and running. All you need to run the code is GCC and a few commands if you are running linux. The commands are

To compile and run C Code

  1. To compile the c Code type [ gcc filename ]
  2. to run compiled c Code [ ./a.out ]

To generate DLL file for C#

  1. gcc -c -fPIC filename (This will output a.out file)
  2. gcc -shared -o outputFile.dll inputFile.o

to view Execution time of the code add time before ./a.out Example: time ./a.out beware this code works only on Linux.

There are play of gcc command that you can play with so make sure to visit gcc's manual and play around with the commands. Just make sure to read the docs properly before playing with the commands.

Prerequisites

The get everything running smoothy without any hiccups will requires some tools they might come preinstalled with your OS and if not I have listed the tools you will need to run C code on your machine.

  • GCC - C Compiler
  • GIT - Version Control

And then lastly a text editor of your choosing I recommend VS code but any text editor will do.

Built With

The practice C code was built with the following tools on GNU/Linux with Fedora 32 as distribution.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT - see the LICENSE file for details

Acknowledgments