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
thele:“test.c”.
Executing a so called “compiler”, which is called GCC.exe in our
system,willtransformoursourcecode“test.c”intoanobjectle,called
“test.o”.Anobjectleisareadabletextle,containingasetof
“assembler”-instructions. The YETI will be able to understand and
executethislistof“assembler”-instructions,butrsttheyneedtobe
processedintoanothercodebyanalstep.
An“.o”(object)-leobviouslycontainsyour“C”-sourcecodeand
additionallyalistofprocessorinstructions(forthespecicprocessor
type you will be using).
Inanalstep,aso-called“linker”willtransformtheseinstructionsinto
the processor’s executable instructions (in hexadecimal code), which
willbestoredinahex-le,e.g.“test.hex”.
Basicallyanyprogrammodicationwillhavetobefollowedbya
compiler and linker process, but we are able to simplify things by using
automaticbatchprocessingandusinga“makele”-process.
Batch processing allows you to chain a great number of different jobs
andserializetheprocess.Amakeleallowsyouhowandwhichles
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/manualforhelpinusingmakeles.
Thesemethodsimplyagreatnumberofnewletypesandlenames,
whichseemstobecomplicatedanddifcult,butworkinginastandard
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
turncallsapreparedmakele.Startingthejobbypressingabuttonin
the standard PN2-menu will allow us to provide an automatic the
compiler and linker process in our editor system.