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

getting vriable address

how do i get variable address defined in C inside assembly instructions while writing some assembly instructions between C code.

Ashutosh Tiwari
Bangalore

Parents
  • i want to reduce the timing reqired to execute a routine which is taking more time while written in C,

    More than ... what?

    so i m using in-line assembly to write routine only.

    You're deducing incorrectly. Inline assembly is rather more likely to make your routine slower instead of faster, because inline assembly fragments get in the way of what the compiler needs to do to produce fast code. What you're doing there is roughly similar to letting the air out of a car's tires to make it go faster.

Reply
  • i want to reduce the timing reqired to execute a routine which is taking more time while written in C,

    More than ... what?

    so i m using in-line assembly to write routine only.

    You're deducing incorrectly. Inline assembly is rather more likely to make your routine slower instead of faster, because inline assembly fragments get in the way of what the compiler needs to do to produce fast code. What you're doing there is roughly similar to letting the air out of a car's tires to make it go faster.

Children
No data