I wrote:
> c2enc now runs on Blackfin with no command-line args (printing the usage
> info) and crashes with "Data access misaligned address violation" when
> fed a file like this "./c2enc 1400 hts1a.raw hts1a_1400.c2". I don't yet
> know whether I am overrunning the stack or if there is another problem; I
> will be working on that today. Any suggestions about how to troubleshoot
> it would be great.
>
I was overrunning the stack. Since making the stack bigger, c2enc runs
fine. Fine, that is, if you can wait about 21 seconds to encode a
three-second message like hts1a.raw :( I am surprised it is that slow
compared with other fixed-point processors that folks have reported about;
maybe they were 32 bit rather than 16 bit.
I messed around with a bunch of compiler options including -mfast-fp and
got it down to 17.24 seconds (BF537 running at 500MHz), but it is obvious
that a fundamental change is needed to make it run realtime.
Converting to fixed-point is obviously the best solution, but I am afraid
that it is too big of a job to tackle myself. The one option I would still
like to try is using a 16-bit floating point library rather than native
32-bit floats. I compiled the "half" (16-bit float) C++ class described
here <http://www.openexr.com/about.html> for Blackfin, but can't directly
use it yet because codec2 is compiled as C rather than C++. I tried
specifying a cflag of "-x c++" to ./configure, but it then complains that
the "C compiler cannot create executables". Is there a chance I could get
the configure.ac file or whatever it would take to compile codec2 with the
C++ compiler? Or is there an easier way? Thanks for any suggestions.
Steve
--
Steve Strobel
Link Communications, Inc.
1035 Cerise Rd
Billings, MT 59101-7378
(406) 245-5002 ext 102
(406) 245-4889 (fax)
WWW: http://www.link-comm.com
MailTo:[email protected]
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2