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 ...
write a 'skeleton' file in 'C' and use the generated assembler as a template
I'd be extremely wary of the feasibility of that approach. Calling assembler fom C is one thing --- calling C from assembler is a whole more complicated kettle of fish. Just think what desastrous things the linker, particularly the automatic data overlaying mechanism, may do if you call C functions without the linker's full knowledge.
Not even to begin with the quirks you'll run into in a program whose main routine is in asm, thus lacking the C standard library initialization, yet still using C functions.