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 acess memory locations assigned by the compiler ?

hello ,
I am calling C functions from assembly .The C functions has two float arguments, one variable is in R4 to R7,other is in some memory location assigned by the compiler .How can i pass argument to this memory location ? How can i know this memory location ?Please help ...

Parents
  • I think I would go for global variables with some glue C code.

    But another quesion here: Are you expected to be able to generate or decode floating point numbers in your assembler code? That is not a trivial task, which is a big reason why assembler code normally never calls C functions that expects floating point values or returns floating point results.

Reply
  • I think I would go for global variables with some glue C code.

    But another quesion here: Are you expected to be able to generate or decode floating point numbers in your assembler code? That is not a trivial task, which is a big reason why assembler code normally never calls C functions that expects floating point values or returns floating point results.

Children