AnsweredAssumed Answered

namespace vs. assembly

Question asked by rkn on Jul 3, 2014
Latest reply on Jul 8, 2014 by rkn

Hi,

 

I'm working on the following problem:

I'm writing a program for a SHARC with VisualDSP. The source code is making use of namespaces. Within one namespace there are some global variables defined. Now I'ld like to access those in an assembly function. Therefore, I declared them via .extern in my assembly code. That does not work. The linker says that the symbols cannot be resolved. Only when I'm placing the variable outside of the namespace it works.

So, is there a smart way to access global variables declared in a C++ namespace from assembly?

 

Raphael

Outcomes