Instructions Circuit Diagram

- 44 -
9.3. Step 2 Compiling a “C”-program
A self-designed YETI program, also being called a “source” or a
“source program”, basically is a simple text document, example given
thele:“test.c”.
Executing a so called “compiler”, which is called GCC.exe in our
system,willtransformoursourcecode“test.c”intoanobjectle,called
“test.o”.Anobjectleisareadabletextle,containingasetof
“assembler”-instructions. The YETI will be able to understand and
executethislistof“assembler”-instructions,butrsttheyneedtobe
processedintoanothercodebyanalstep.
An“.o”(object)-leobviouslycontainsyour“C”-sourcecodeand
additionallyalistofprocessorinstructions(forthespecicprocessor
type you will be using).
Inanalstep,aso-called“linker”willtransformtheseinstructionsinto
the processor’s executable instructions (in hexadecimal code), which
willbestoredinahex-le,e.g.“test.hex”.
Basicallyanyprogrammodicationwillhavetobefollowedbya
compiler and linker process, but we are able to simplify things by using
automaticbatchprocessingandusinga“makele”-process.
Batch processing allows you to chain a great number of different jobs
andserializetheprocess.Amakeleallowsyouhowandwhichles
are to be compiled and linked. See the website
http://www.gnu.org/software/make for help in using batch jobs and
http://www.gnu.org/software/make/manualforhelpinusingmakeles.
Thesemethodsimplyagreatnumberofnewletypesandlenames,
whichseemstobecomplicatedanddifcult,butworkinginastandard
developing system we normally may ignore these details and leave
them to the experts. We will simplify the process radically.
How do we simplify things ... Well, we just start a batch job, which in
turncallsapreparedmakele.Startingthejobbypressingabuttonin
the standard PN2-menu will allow us to provide an automatic the
compiler and linker process in our editor system.