Newsgroups: comp.dsp
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!snorkelwacker.mit.edu!world!aep
From: aep@world.std.com (Andrew E Page)
Subject: Re: bit reversal of a C array in '30 code
Message-ID: <1991Jun28.140920.1889@world.std.com>
Organization: The World Public Access UNIX, Brookline, MA
References: <1991Jun25.082320.599@otago.ac.nz> <1991Jun26.052754.5772@netcom.COM>
Date: Fri, 28 Jun 1991 14:09:20 GMT
Lines: 33

In article <1991Jun26.052754.5772@netcom.COM> mcmahan@netcom.COM (Dave Mc Mahan) writes:
>
> In a previous article, psyxsgp@otago.ac.nz writes:
>>Hi,
>>    Could anyone tell us how to zero align an array
>>generated in C, but calling an assembler routine in
>>tms320c30 code which does bit reversal.
>
>One way to long word-align an array is to put it in a seperate segment,
>and then ensure that the segement starts on the proper boundry.  Failing
>that, you can do it at run-time.  The code isn't pretty, but it does work.
    ^^^^^^^^^

Bear in mind that ALL words in a TMS320C30 (chars, ints, longs) are always
going to be 32bits in length.  There is no need to allign data generated
in C~r (for the C30 thatis) in order to align in in it's memory. 

Second...

  The ALIGN operator in the cmd linker aligns to PAGE boundaries which
are necessary for bit reverse and circular address buffers.  


Third:

IN the originail posting when you said 'zero align' exactly what do you 
mean by this?  


-- 
Andrew E. Page (Warrior Poet)   |   Decision and Effort The Archer and Arrow
Concepts Enginerring            |     The difference between what we are
Macintosh and DSP Technology    |           and what we want to be.
