Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
|
Hello! I´m a beginner at ADSP 21992 and i´m having some trouble in using some "C" and Assembly routines. I would like to know how to write a .ldf file to work using an assembly program and some routines in "C". I believe that´s a simple task but i´m still stupid in this field. Thanks, Leandro Borba |
|
On Mon, 14 Mar 2005, Leandro Borba wrote: > I´m a beginner at ADSP 21992 and i´m having some trouble in using > some "C" and Assembly routines. > I would like to know how to write a .ldf file to work using an > assembly program and some routines in "C". I believe that´s a simple > task but i´m still stupid in this field. It's can be simple. If you want to add the code directly to a segment that already exists, then you just need to tell the assembler the correct name in a .segment line. the linker will add the code to the right place automaticly. If you need to add a new segment, then you will have to change the ldf with a new memory segment. then it's a bit more complicated. Patience, persistence, truth, Dr. mike |
|
Hello, For using the C compiler as well as ASM code, the problem is not on the LDF side. Use one as if simply using C code. Then, try to find out in the C/C++ compiler's manual the how to interface ASM code with C, I'm sure you'll find it there. Regards, JaaC --- Leandro Borba <> wrote: > Hello! > > I´m a beginner at ADSP 21992 and i´m having some > trouble in using > some "C" and Assembly routines. > I would like to know how to write a .ldf file to > work using an > assembly program and some routines in "C". I believe > that´s a simple > task but i´m still stupid in this field. > > Thanks, > Leandro Borba Jaime Andrés Aranguren Cardona __________________________________________________ ">http://mail.yahoo.com |
|
Many of the "mixed" examples supplied with the EZkits demonstrate how to calll asm from c. At 11:42 AM 3/16/2005, Jaime Andres Aranguren Cardona wrote: >Hello, > >For using the C compiler as well as ASM code, the >problem is not on the LDF side. Use one as if simply >using C code. > >Then, try to find out in the C/C++ compiler's manual >the how to interface ASM code with C, I'm sure you'll >find it there. > >Regards, > >JaaC > >--- Leandro Borba <> wrote: > > > > > > Hello! > > > > I´m a beginner at ADSP 21992 and i´m having some > > trouble in using > > some "C" and Assembly routines. > > I would like to know how to write a .ldf file to > > work using an > > assembly program and some routines in "C". I believe > > that´s a simple > > task but i´m still stupid in this field. > > > > Thanks, > > Leandro Borba >Jaime Andrés Aranguren Cardona > > >__________________________________________________ >">http://mail.yahoo.com Steve Holle Link Communications, Inc. 1035 Cerise Rd. Billings, MT 59101 |