I have experience in programing Motorola in asembler, and I am starting with MikroC.
I would like to find example of large program organisation. For example, I would like to separate my program in 2-3 files. Is it possible in this C and how?
May I make more than one function in one single file and to call each other and how?... Any examples please
LARGE PROGRAMS IN MIKROC
CharlieM wrote:Hi George,
I think the Best way to have a Large Program is to Divide it up into "Moduals".I think the Help has more on this. Take a look at Linkage in the Help.
Thanks Charlie, but I cant find anything about dividing large programes into modules. Is this option supported by MikroC or this is C only for short programs?
Re: LARGE PROGRAMS IN MIKROC
MikroC follows the usual C project organization.
- - Each project can have any number of source files, where functions can be grouped in any way the programmer finds them suitable.
- Source files are added to project through the <Project -> Add To Project...> menu command; similarly, they are removed from project through <Project -> Remove From Project...> menu command;
- External function and variable declarations are put into source files through the standard set of preprocessor directives (#include, possibly with #ifdef, #ifndef and #endif). Declarations are automatically available (without preprocessor) for the library files (the ones placed in the ....\Uses\Pxx directories).
pizon