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

HOW .... to include library C51s.lib ???

I am doing inline assembly. All works except unresolved external.
OK I KNOW WHY.

BUT HOW DOES ONE INLCUDE THE MISSING LIBRARY IN THE IDE ?

Specifically, what dialog, what text to enter where ?

The "help" says "BL51 inputlist, CxxFPS.LIB, CxxS.LIB NODEFAULTLIBRARY"

... what is this ? ... where is this ?

Project Options for Target ....

BL51 Misc ??? ... but WHERE and WHAT ???

Parents
  • I am doing inline assembly.
    Actually, the symptoms you get typically come from severely overdoing inline assembly. You get those symptoms by turning on the SRC directive for every C source file in your program. Don't do that, particularly not at the rather limited level of experience with the tools you have right now.

    That set aside, whatever your reason for doing so, inline assembly is almost certainly the wrong way to get there. In C51, even more than most other other compilers, the achievable positive effects of inline assembly are quite a bit smaller than most people think --- and the negative side-effects much bigger.

    I strongly suggest you leave the whole idea of inline assembly alone for quite while yet. You'll have to be much better at all this before this becomes a tool that you can really profit from.

Reply
  • I am doing inline assembly.
    Actually, the symptoms you get typically come from severely overdoing inline assembly. You get those symptoms by turning on the SRC directive for every C source file in your program. Don't do that, particularly not at the rather limited level of experience with the tools you have right now.

    That set aside, whatever your reason for doing so, inline assembly is almost certainly the wrong way to get there. In C51, even more than most other other compilers, the achievable positive effects of inline assembly are quite a bit smaller than most people think --- and the negative side-effects much bigger.

    I strongly suggest you leave the whole idea of inline assembly alone for quite while yet. You'll have to be much better at all this before this becomes a tool that you can really profit from.

Children
  • I strongly suggest you leave the whole idea of inline assembly alone for quite while yet. You'll have to be much better at all this before this becomes a tool that you can really profit from.
    my version is shorter"
    "I strongly suggest you leave the whole idea of inline assembly alone"

    if something gain an advantage from inline assembly (less than you think will) DO NOT use inline assembly, write the function in assembler in an assembly module.

    Erik