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

C Library for 22-bit Contiguous Mode of DS80C390

As I use inline assembler in my C program, I have to include the related C library in my project. If the project is configured to 22-bit contiguous mode & dual DPTRs of DS80C390, can you tell me which C library should be included ? Thks.

Parents
  • As I use inline assembler in my C program, I have to include the related C library in my project.

    That conclusion is a bit premature. You only have to include the C libraries manually if you compile all C files of the entire project via assembler output. The easy fix is not to do that: don't turn on compilation via the .src detour for all files, but only for those that actually need it. If necessary, you may add an otherwise empty .c source file to the project just for this purpose.

    If you actually do have inline assembly in every single one of your .c files, that's a likely symptom of tool abuse --- you should probably just have written the entire thing in assembly then, or at least have organized the source code a bit better.

Reply
  • As I use inline assembler in my C program, I have to include the related C library in my project.

    That conclusion is a bit premature. You only have to include the C libraries manually if you compile all C files of the entire project via assembler output. The easy fix is not to do that: don't turn on compilation via the .src detour for all files, but only for those that actually need it. If necessary, you may add an otherwise empty .c source file to the project just for this purpose.

    If you actually do have inline assembly in every single one of your .c files, that's a likely symptom of tool abuse --- you should probably just have written the entire thing in assembly then, or at least have organized the source code a bit better.

Children