3 compile environment settings & build, 3 compile environment settings & build -3 – Solvline LemonIDE Ver 1.0c User Manual
Page 27

LemonIDE
TM
Chapter 5. Using IDE
Sample program “hello.c” is shown below to provide a better understanding on use of LemonIDE.
#include
void sub (int value);
int main (int argc, char *argv[])
{
sub (1000);
return 0;
}
void sub (int value)
{
int sum=0, i;
for (i=1; i<=value; i++) {
sum += i;
}
printf ("SUM (1 ~ %4d) = %7d\n", value, sum);
return;
}
5.3 Compile Environment Settings & Build
Compile refers to process of compiling and linking source files and making binary image executable for Eddy.
LemonIDE projects are usually compiled based on makefile. This chapter outlines process of compiling source files
using makefile provided in DK Source.
5-3