Forums

automatic labelname in inline asm functions in visualdsp??

Started by John McDermick August 4, 2011
The GNU gcc  blackfin compiler has a feature where labels in inline assembly 
functions are automatically numbered (to avoid illegal redefinitions of 
labels)...

The syntax is [labelname]%=

For example "LOOP mylabel%= LC0 = P0;\n\t"

The VDSP compiler doesn't understand this syntax....but I am wondering if 
the feature is available and in that case...what is the syntax??









John McDermick wrote:

> The GNU gcc blackfin compiler has a feature where labels in inline > assembly functions are automatically numbered (to avoid illegal > redefinitions of labels)...
Inline assembly sucks.
> The syntax is [labelname]%= > > For example "LOOP mylabel%= LC0 = P0;\n\t" > > The VDSP compiler doesn't understand this syntax....
Of course. Nobody can understand this.
> but I am wondering > if the feature is available and in that case...what is the syntax??
while(cntr--) do_something(); Vladimir Vassilevsky DSP and Mixed Signal Design Consultant http://www.abvolt.com