Instructions Circuit Diagram

- 74 -
Compiling a program
A microcontroller is unable to understand the ‘C’-language in the
sourcecodeleandwewillneedatranslatorprogramtogenerate
the instructions for the microcontroller. The translator program is just
anordinaryprogram,translatingoneleintoanother.Ininformation
technology this kind of program is named ‘Compiler’. So we will need a
‘C’-compiler to create YETI-programs and consequently we choose the
program‘gcc.exe’.Thecompilerwillneedaninputlewithanameex-
tension dot and a letter ‘c’. For this reason the compiler will be unable
totranslateasourcelenamed‘test.txt’,butitwillprocessale‘test.c’
with the same contents.
Having customized the Programmers Notepad2 correctly you may
press a button in the Tools->Make menue and wait patiently for the
‘C’-compilercompletingthetranslationofyoursourceleintoa
‘hex’-le.
‘Uploading’ a program
Imagine the compiler has just completed the translation of a ‘C’ pro-
gram‘test.c’intoalewithmicrocontrollerinstructionscalled‘test.hex’.
Asanalstepyoumaystarttheashprogramtotransferthe‘hex’-le
byinfraredcommunicationtotheYETImicrocontroller.Thisnalstep,
inwhichtheashprogramtransfersthe‘hex’-letotheYETI,iscalled
‘Uploading’ a program.
Customizing a compiler system
If you plan to buy a ‘C’-compiler, you will normally have to invest a few
hundred Euros, Dollars or Pounds. However a group of professional
programmers invested a lot of time and effort to develop an extremely
versatile ‘C’-compiler system, which is even free of charge!