2008-12-03 01:15:32 porting Visual DSP++ Two-dimensional array to the GNU Toolchain meet some problem?
haiping zeng (CHINA)
Message: 66192
Hello everyone:
when i am porting Visual DSP++ assembly source code to the GNU Toolchain,I meet this problem:
accordding to http://docs.blackfin.uclinux.org/doku.php?id=visualdsp:port_assembly_code&s[]=gas
such as :Two-dimensional array _ADI_TOOLS_CG723_BandQntTable was composed of three One-dimensional arrays: _ADI_TOOLS_CG723_Band0Tb8,_ADI_TOOLS_CG723_Band1Tb8 and _ADI_TOOLS_CG723_Band2Tb8;
=======================================
.section G723_com_data_a;
.align 4;
_ADI_TOOLS_CG723_BandQntTable:
.global _ADI_TOOLS_CG723_BandQntTable;
.type _ADI_TOOLS_CG723_BandQntTable,STT_OBJECT;
.byte4=_ADI_TOOLS_CG723_Band0Tb8;
.byte4=_ADI_TOOLS_CG723_Band1Tb8;
.byte4=_ADI_TOOLS_CG723_Band2Tb8;
=======================================
I modify it as follow! would it be all right? could someone give me
some advices?
=======================================
.data
.align 4;
#if defined(__GNUC__)
_ADI_TOOLS_CG723_BandQntTable:
.global _ADI_TOOLS_CG723_BandQntTable;
.type _ADI_TOOLS_CG723_BandQntTable,STT_OBJECT;
.int _ADI_TOOLS_CG723_Band0Tb8;
.int _ADI_TOOLS_CG723_Band1Tb8;
.int _ADI_TOOLS_CG723_Band2Tb8;
#else
_ADI_TOOLS_CG723_BandQntTable:
.global _ADI_TOOLS_CG723_BandQntTable;
.type _ADI_TOOLS_CG723_BandQntTable,STT_OBJECT;
.byte4=_ADI_TOOLS_CG723_Band0Tb8;
.byte4=_ADI_TOOLS_CG723_Band1Tb8;
.byte4=_ADI_TOOLS_CG723_Band2Tb8;
#endif
QuoteReplyEditDelete
2008-12-03 01:47:08 Re: porting Visual DSP++ Two-dimensional array to the GNU Toolchain meet some problem?
Mike Frysinger (UNITED STATES)
Message: 66193
seems ok, but you can easily check things by just writing it in C and outputting assembly.
bfin-uclinux-gcc test.c -S -o -
QuoteReplyEditDelete
2008-12-03 21:50:27 Re: porting Visual DSP++ Two-dimensional array to the GNU Toolchain meet some problem?
haiping zeng (CHINA)
Message: 66267
Thanks Mike!