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 global variables of C by assembly language

How do I use global variables defined in the C for the asembly program?

for example

char my_var

int main()
{ .....
}

I want access to my_var from the startup.s file

Can you give me simple example?