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

Using C variables in Assembly language code

I have C source file where the code is a mixture of C language code and assembly language code. I want to use a C variable in that assebly language code how do i do it? Any help is welcome.

(I can do this with IMPORT keyword in ARM . is there anything similar here.)

thanks
kaushik

Ex-

main()
{
//normal C code
unsigned char arr[100];
.
.
.
.
________________________________
//assebly language code starts here

I want to use arr[100] here

//assebly language code ends here
______________________________
normal C code
.
.
.
.
}

0