I will be willing to pay for this information: I am using micorvision 2 and need to know how I can construct a library of objects and then how I can reference those objects from a main program. For example, suppose I want to write a module that sends characters to the serial port and write a module that recieves a module from the serial port. Next I want to create a library that contains read.obj and send.obj in a library. Next I want to write a main program that calls send.obj and read.obj. How do I create the libray of the two object modules, how do I reference the object modules (or library) in my main program? Thank you so much for anyone who can help me on this. Jim Gilliam, K6qe@earthlink.net
I will send you a check for 50 dollars if you will do the following: 1. Write a couple of stupid assemly programs that really do nothing like move something to a register and then issue a return statement. 2. Describe IN DETAIL how to create the library for the program main. 3. Writa an ASSEMBLY program titled main that references to the two "stupid" programs in item 1. 4. Answer any stupid questions I might have regarding your programs. 5. Give me your name and address and I will gladly send you a personal check for fifty dollars. I am serious. I am completely frustrated trying to accomplish this. I have read the section on creating object libraries. However, I still can't figure out how to reference that library from may main program (assembly language). Also, I assume there is no way of creating libraries from the microvision environment and that I have to go to a DOS command line to issue the statements of creating the library of .obj files. Thank you so much. Jim Gilliam
Are you using full tools or just eval tools. In C51/C251 Eval Tools it is not possible to create custom libraries. The C251 toolchain contains in the folder ..\C251\EXAMPLES\MCB251 and example for creating an serial I/O library. This library is used other C251 examples. It is easy to port this library concept to the C51 so maybe you take a look at this first.
I am using the full purchased version of c51 and can create libraries. I will extend the same offer to you. Jim