hi.. i want to know that, in my program i have two modules of named fun1 and fun2 which are stored in seperate files. now i want to call those functions from main program which is stored in seperate one. please help me..
This is a very question about programming in C. It has basically nothing to do with C51 in particular. This has two important consequences: 1) You really should acquire working knowledge on C programming before you delve into embedded C, on an 8051 of all things. You're trying to run before you mastered walking. 2) You're asking in the wrong place. Basic C questions are best addressed to Usenet forums like comp.lang.c or alt.comp.lang.learn.c-c++
"how to access two function programs from main program" Note that you have only one program. That one program consists of three functions - main, fun1, and fun2. Presumably, these three functions are implemented in three separate files - say, main.c, fun1.c, and fun2.c? As Hans-Bernhard says, if you really don't known how to call functions between separately-compiled files, then you need to do some basic 'C' textbook study. However, if you just want to know how to do multi-file projects using the Keil tools, then you need to start by reading the uVision Getting Started Guide, and working through the example projects in it. This will give you a proper introduction to the tools, how they work, and how to use them - rather than just jumping-in blindly at the deep end. (The uVision Getting Started Guide is available on the 'Books' tab in the 'Project' Window; The 'Books' window is also available via the 'Help' menu; failing all that, search for GS51.PDF in your Keil folder)