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

CALLING C LIBRARY FUNCTION FROM ASSEMBLY

Hi:

I wish to call function "pow" (which is standard function in library) from my assembly code. How can I do it? Thanks!

Parents
  • Hi,

    Thanks for your responses!
    Now I can call C library functions(pow()) from my assembly code. But another issue occurs. I need keep the code size under 32k and I have about 11k free space availiable. The linker ignored my free space and always put library function on higher address space(beyond 32k - >0x8000). Why does this happend? How can I tell linker to put library code right after my assembly code? Any comments are appreciated! Thank you!

Reply
  • Hi,

    Thanks for your responses!
    Now I can call C library functions(pow()) from my assembly code. But another issue occurs. I need keep the code size under 32k and I have about 11k free space availiable. The linker ignored my free space and always put library function on higher address space(beyond 32k - >0x8000). Why does this happend? How can I tell linker to put library code right after my assembly code? Any comments are appreciated! Thank you!

Children