|
hi in g21 compiler for adsp21xx , sizeof(double) returns 2 == 32bits, but IEEE754 says it is 64 bits any body knows why? regards, hemanth --o--2----*--6--*--o--*--7--#--5--o--*--3--#--&--9--o--*--@--*--o--*--7--# --5-- I Dream Therfore I Am All are lunatics, but he who can analyze his delusions is called a philosopher. Man's mind stretched to a new idea never goes back to its original dimensions Life:(verb transitive ) Summer Vacation. |
|
|
(No Subject)
Started by ●January 12, 2001
Reply by ●January 30, 20012001-01-30
|
hi i0=^input1.dat; i4=^input2.dat; cntr=x; mr=0; do mac until ce; mac:mr=mr+mx0*my0(UU),mx0=dm(i0,m0),my0=pm(i4,m4); now i want to place all mac results in a output.dat file how can i do this regards suren _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com |
Reply by ●February 1, 20012001-02-01
|
hi all i am trying to assemble adsp21xx code in 5.x version in adsp 21xx version 7.0, using legacy switch option . everything is fine except it is giving some errors in .dat files some of the errors are [Error E59] D:\tosh47\cos.dat:5 '7e5400': Float constant not supported for fixed point processor assembly. Use 'r' suffix to indicate fractional. [Error E73] D:\tosh47\cos.dat:8 [column 1]Syntax Error in Lexer. [Error E52] D:\tosh47\cos.dat:26 Attempted syntax error recovery. Resuming processing after semi-colon. can anybody suggest solution for these errors thanks suren _____________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com |
Reply by ●March 13, 20012001-03-13
|
hello: I have trouble in design a muti-21160 dsp board,i use eprom_boot mode,i set dsp#1 as eprom mode,eboot=1,lboot=0,bms is output.and other three mode is eboot=0,lboot=0,bms=1. but when i reset 4 dsp,the dsp#1's /bms output is low.so the eprom cant boot. somebody have suggestions? Thanks in advance |
|
|
Reply by ●March 14, 20012001-03-14
|
Hello. I have reached an impass in what I am doing. Due to interfacing needs, I have some source written in C, and some written in .asm. Is there a way to have them both called through a main function? Do I have to actually embed the entire .asm file into a .c file? or can i just call it. Also, I am using a common header for some register defines. Does anyone know if there are any problems associated with this approach? Thanks a bunch! Tom Hanley p.s. Another issue I am expecting to come across is that of what to do with the .ldf file where I had to comment out the C libraries to use the asm file. I imagine that i waill have to leave that portion in there to be able to use my C source, but will the assmebly part run if the libraries are present? Thanks again :) |
|
|
Reply by ●March 14, 20012001-03-14
|
On Wed, 14 Mar 2001 12:25:46 -0500 (EST), Tom Hanley wrote: > I have reached an impass in what I am doing. Due to interfacing > needs, I have some source written in C, and some written in .asm. Is > there a way to have them both called through a main function? You can use inline asm to simply run the asm code inline with the C code. Take a look at the online C compiler manual (Acrobat format) and read the sections on mixed C and assembler closely. It explains what assumptions the compiler makes about the state of the registers. You must restore these assumptions when leaving asm code and returning to C code. |
|
|
Reply by ●March 15, 20012001-03-15
|
I think the restoration might be my problem. I went and copied my whole asm source into the C file as asm("blah blah blah"), and for individual commands it works just fine, however, when i get to the end, the whole thing freezes up and tells me that the stack has underflowed. Not knowing what this error means, I played around with it some more. I'll have to go through that PDF file a little more closely. I wasn't really using anything i needed to push onto a stack, but then again, i might be wrong. I'll let you know what i find when i get back tomorrow. Thanks again :) tom On Wed, 14 Mar 2001, Kenneth Porter wrote: > On Wed, 14 Mar 2001 12:25:46 -0500 (EST), Tom Hanley wrote: > > > I have reached an impass in what I am doing. Due to interfacing > > needs, I have some source written in C, and some written in .asm. Is > > there a way to have them both called through a main function? > > You can use inline asm to simply run the asm code inline with the C > code. Take a look at the online C compiler manual (Acrobat format) and > read the sections on mixed C and assembler closely. It explains what > assumptions the compiler makes about the state of the registers. You > must restore these assumptions when leaving asm code and returning to C > code. > Tom Hanley "I had a vision I could turn you right, a stupid mission and a lethal fight. I should have seen it when my hope was new, my heart is black and my body is blue. And I'm losing my favourite game, you're losing your mind again." -cardigans |
|
|
Reply by ●March 15, 20012001-03-15
|
On Wed, 14 Mar 2001 19:17:45 -0500 (EST), Tom Hanley wrote: > i get to the end, the whole thing freezes up and tells me that the stack > has underflowed. Not knowing what this error means, The C stack is referenced through B/I7/L7, and I6 is used as the C frame pointer. Try compiling some C code to asm (cc21k -S) and look at the asm code that the compiler creates. |
Reply by ●June 10, 20012001-06-10
|
Hello! I have designed a IIR decimation filter, the result on the oscilloscop was as I expacted, but when I uuse interpolation filter to get the initial signal out, the interpolation result is as decimation result. With the other words, the interpolation filter has no effect. I'm using software: VisualDSP++ processor: adsp 21062 codec: AD1849k Please, does anyone have a solution? Thanks! ___________________________________________________ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com |
Reply by ●September 5, 20012001-09-05
|
I want to try one of assembly programm in VDSP i made a new project and added assembly file to the same but when i select build project it gives following error [Error E2007] symbol '_main' referenced in file 'C:\PROGRAM FILES\ANALOG DEVICES\VISUALDSP\21K\LIB\060_HDR.DOJ' could not be resolved Linker finished with 1 error(s) 0 warning(s) CC21K: Fatal Error: Link failed Tool failed with exit/exception code: 1. Build was unsuccessful. however If i build file than it builds successful. Can anybody help me Thanks in advance Harshad Dave Project Associate(Radar Division -II), Society for Applied Microwave Electronics Engineering & Research, IIT Campus,Powai,Mumbai-400 076, India. |






