DPRG
DPRG List  



[DPRG] EmbedCV

Subject: [DPRG] EmbedCV
From: Dave Hylands dhylands at gmail.com
Date: Tue Oct 17 01:59:46 CDT 2006

Hi Chris,

In addition to what other people have commented, I'll throw in my
comments as well.

If you're serious about targeting the embedded platform, then I would
give serious consideration to dropping C++, or adding it as a wrapper
layer.  I've always been a string proponant for C++, but it has a few
downsides.

My first comment is pro-C++. Most of the performance issues relate to
exception handling, and have nothing to do with constructors (unless
they're misused).

My real "issue" with C++ is how crappy the run-time libraries are. I'm
using a gumstix running linux, and turning on C++ pulls in a 500K
library. I am especially disgusted by stuff like cout << 1; winding up
calling sprintf( "%d", 1 ) internally.

So, I'm now coding all my stuff using plain old C and just using good
old fashioned modular programming (aka object oriented techniques).

I'm also in favor of fixed-point math, or as Clem points out, a
mixture where fxed point is used in the performance sensitive stuff.

If you feel tempted to optimize anything using assembler, make sure
that you also have a C version of the algorithim so people who have a
different processor can at least get started using the C version and
then hand-optimize as needed.

-- 
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/

More information about the DPRG mailing list

Copyright © 1984 - 2006 Dallas Personal Robotics Group. All rights reserved.
Website Design by NCC

For the latest robot news visit robots.net