Thread: Enhancing the speed of DM6437

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    1

    Enhancing the speed of DM6437

    Hi,

    We are testing many image processing algorithms of some libraries (Opencv, Imglib and Vlib) on our EVM platform DM6437, but we noticed that the exuction of these algorithms is very slow (with a delayed period of time). Whereas, we must have a real time execution of them.

    In fact I have some questions:

    As I said we use the DSP TMS320DM6437, How can I know:

    *who is faster: Char, Short or Long int?
    * Is it always advisable to use the cache memory in order to declare variables?
    * When it's recommanded to use an assembly code instead of C code, and can we have a mixture of assembly and C code in one program?
    * Is there a difference between C and C++ programs in the scale of "speed of time execution".

    In fact,if anyone has an idea who can I make the execution of the DSP go faster don't hesitate to post it in this forum.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    *who is faster: Char, Short or Long int?
    The x-bit integer, where x is the bus / memory / register width of the machine you're using.

    * Is it always advisable to use the cache memory in order to declare variables?
    cache memory is used based on the frequency of memory references determined at run-time. If you hit a variable often enough, it will be in cache memory without you having to do any extra work.

    * When it's recommanded to use an assembly code instead of C code,
    When you've run a profiler, and found the 10% of the code that is taking 90% of the time.
    Trying to guess where the bottlenecks are "a priori" is a fools game.

    * and can we have a mixture of assembly and C code in one program?
    Almost all C compilers support this notion to a greater or lesser extent.

    * Is there a difference between C and C++ programs in the scale of "speed of time execution".
    Choosing the best algorithm will have FAR more impact on the performance than the choice of implementation language. Providing the programmers are of comparable skill, their efficiency in the 90% of the code which doesn't matter (see above) isn't going to make a difference (at least none you can predict in advance).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jul 2010
    Posts
    1

    Smile

    Hello everybody,

    My project is to implement an OPENCV algorithm to the TMS320DM6437 board using CCStudio.
    my problem is :

    How to configure ccstudio with OPENCV?
    How to impliment an OPENCV program in DM6437 board ?

    Feel free to contact me if you have an idea, I'm really stuck!!!

    Thank you in advance.
    Last edited by jben; 07-19-2010 at 08:46 AM.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Well no response from the OP, and the "me too" hijackers have arrived.
    Thread is now pointless.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I am very new . . . :(
    By Eternalglory47 in forum C++ Programming
    Replies: 6
    Last Post: 09-05-2008, 11:29 AM
  2. Flight Simulator Wind Speed!!
    By Dilmerv in forum C++ Programming
    Replies: 6
    Last Post: 03-20-2006, 12:40 AM
  3. Replies: 6
    Last Post: 01-08-2006, 02:49 PM
  4. increased net speed
    By PING in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 03-29-2005, 07:05 AM
  5. VB Speed compared to VC++ Speed.
    By Xei in forum C++ Programming
    Replies: 6
    Last Post: 05-19-2002, 04:01 PM