3.6: The Program Creation/Development Cycle

Embedded Controllers Using C and Arduino · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY-NC-SA 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    3.6: The Program Creation/Development Cycle

    To create a C program:

    1. Do the requisite mental work. This is the most important part.
    2. Create the C source code. This can be done using a text editor, but is normally done within the IDE (Integrated Development Environment). C source files are plain text and saved with a “.c” extension.
    3. Compile the source code. This creates an assembly output file. Normally, compiling automatically fires up the assembler, which turns the assembly file into a machine language output file.
    4. Link the output file with any required libraries using the linker. This creates an executable file. For desktop development, this is ready to test.
    5. For embedded development, download the resulting executable to the target hardware (in our case, the Arduino development board). For the Arduino, steps 3, 4, and 5 can be combined by selecting “Build” from the IDE menu.
    6. Test the executable. If it doesn’t behave properly, go back to step one.

    This page titled 3.6: The Program Creation/Development Cycle was last modified on Wed, 08 Sep 2021 02:57:33 GMT and is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by James M. Fiore via source content that was edited to the style and standards of the LibreTexts platform.