This Material Is Developed by Imtschool For Educational Use Only
This Material Is Developed by Imtschool For Educational Use Only
This Material Is Developed by Imtschool For Educational Use Only
Tool Chain
Executable file
File.exe
Written in Machine language
A tool chain is a set of tools (will be discussed in details later on) that are used to
convert the source file written in C, to the executable file written in
machine language ( 0 and 1 ) to be run on the processor
In our course we will use an open source tool chain called GCC
You will find it in the folder you received by your instructor under the
director
In the section System variables, search Go to the end of the Variable value
for Path and click Edit and insert ; then paste the path you
copied
Notes:
1- Take care, don’t remove any thing from the Variable value, just add ; and then
your path and press Ok
In the start menu, search Open the cmd.exe Write down gcc and press
for cmd
Enter, if you found this message
then the installation is correct
Notes:
1- If you found a message stating that gcc is not recognized, restart your computer
and try again, if the message still existing, then the installation is not correct. Re-
install your program or ask your instructor for help.
To write a code you will need an editor, you can use the Notepad installed with the
windows, but we recommend using Notepad ++ because it has a better colored
interface.
You will find Notpad ++ in our tools folder under the following directory:
Open notepad ++ , make new file and choose the language to be C
1- Write your code and save the file in .c extension
2- in the folder that your c file exist, press on the shift button and press right click
then choose Open Command Window here
3- In the command window type the following command
gcc file.c
4- If you want to name the output file, type the following command
gcc file.c -o out.exe
5- To display your output, Just write your output name in the command window
out.exe
ww.facebook.com/imaketechnologyschool/