This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Creating and using object libraries

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 be willing to pay for this information"

    How much?

    But before we discuss fees, you could consider the following self-help:

    Have you read the sections "LIB51 Library Manager," "Creating a Library File," and "LIB51 / L251 Library Manager Commands" in the uVision Getting Started guide?

    Have you read the section on the Library Manager in the Assembler/Utilities Manual?

    Have you looked throught the Applications Notes and the Knowledge Base?

    "how do I reference the object modules (or library) in my main program?"

    The same way you do the standard 'C' libraries for printf, etc; by means of a header file for the Compiler, and by adding the Library to the uVision Project for the Linker.

  • 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

  • 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