Jerry Avins wrote:> Vladimir Vassilevsky wrote: > >> Unfortunately, the hardware interface layer and the general frame of >> the application has to be coded by master... This is what they just >> can't understand. > > > Who is "they"? In my experience, the master has to design the approach.Unfortunately, not that only. There is quite a lot of tedious work which requires mastership nevertheless. Shared resources, critical sections, atomic access, hardware/software interaction, low level drivers, graceful handling of faults, etc.> The actual coding is then often simple enough for an apprentice, but > it's probably easier for Master to do it than to describe what needs > doing.Very true too. A master productivity is somewhat 20 times higher then that of apprentice. However there is only that much that you can do by yourself.> I often spent more time guiding my technicians than the job would > have taken me, but it was time well spent. Good help is hard to find; > you have to make it. (Two of my techs became MTSs.)From my experience, it takes about 6 months (or never) to make an employee just to justify the misc. costs. And it takes five reasonably good employees to double your personal income. Vladimir Vassilevsky DSP and Mixed Signal Design Consultant http://www.abvolt.com
Online · Live + on demand
February 9-11, 2027
Price goes up Jan 1: register now to lock in today's rate
Register Now →
zero-overhead branching
Started by ●August 18, 2007
Reply by ●August 20, 20072007-08-20
Reply by ●August 20, 20072007-08-20
Vladimir Vassilevsky wrote:> > > Tim Wescott wrote: > >> Whenever I approach a DSP coding project I always try to identify the >> 1% of the code that will get called 99% of the time. That part gets >> coded in assembly by hand (and usually by my hand). The rest gets >> done in C or C++ (and largely by minions when I have them). > > It looks surprising but the asm coding of the narrow places can be done > by apprentices fairly well. This is because the asm part is usually > quite small, straightforward and very clearly defined. >Sometimes, yes. Usually I end up in a team with 'ordinary software' guys who are quite good at regular code, but don't really comprehend signal processing. These are guys who've been doing software for 20 years, can code OS interfaces accurately and quickly, but who starts to edge out of the room when you say words like "convolve", "summation" and "spectrum". They can do the "regular" stuff as well or better than me, and would take a lot of book learning to do signal processing stuff -- so I do it. Now, if I had a kid fresh out of DSP school...> Unfortunately, the hardware interface layer and the general frame of the > application has to be coded by master... This is what they just can't > understand.Yea, I shudder to think what I'd end up with trusting a rank beginner to do that -- I've seen supposed "masters" mess that one up, badly. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com Do you need to implement control loops in software? "Applied Control Theory for Embedded Systems" gives you just what it says. See details at http://www.wescottdesign.com/actfes/actfes.html
Reply by ●August 20, 20072007-08-20
On Aug 21, 6:01 am, Tim Wescott <t...@seemywebsite.com> wrote:> Vladimir Vassilevsky wrote: > > > Tim Wescott wrote: > > >> Whenever I approach a DSP coding project I always try to identify the > >> 1% of the code that will get called 99% of the time. That part gets > >> coded in assembly by hand (and usually by my hand). The rest gets > >> done in C or C++ (and largely by minions when I have them). > > > It looks surprising but the asm coding of the narrow places can be done > > by apprentices fairly well. This is because the asm part is usually > > quite small, straightforward and very clearly defined. > > Sometimes, yes. Usually I end up in a team with 'ordinary software' > guys who are quite good at regular code, but don't really comprehend > signal processing. These are guys who've been doing software for 20 > years, can code OS interfaces accurately and quickly, but who starts to > edge out of the room when you say words like "convolve", "summation" and > "spectrum". > > They can do the "regular" stuff as well or better than me, and would > take a lot of book learning to do signal processing stuff -- so I do it. > > Now, if I had a kid fresh out of DSP school... > > > Unfortunately, the hardware interface layer and the general frame of the > > application has to be coded by master... This is what they just can't > > understand. > > Yea, I shudder to think what I'd end up with trusting a rank beginner to > do that -- I've seen supposed "masters" mess that one up, badly. > > -- > > Tim Wescott > Wescott Design Serviceshttp://www.wescottdesign.com > > Do you need to implement control loops in software? > "Applied Control Theory for Embedded Systems" gives you just what it says. > See details athttp://www.wescottdesign.com/actfes/actfes.htmlThanks, masters! The reason why I ask this question is that a fuction which contains a lot of branches is inefficient in Freescale SC3400 core. Because there is many branches, i think it is not advisable to write it into assembly code. If a brach occurs, there is several delay slots that can be used to execute.How can delay slots be used efficiently?In my opnion, it is the job of c compiler to handle codes that contains many branch. But such code is efficient in TI C64x core, so I read the manual of TI C64x to find the reason. From the view of architecture, there is no big difference. So I think C compiler from TI outperforms C compiler from Freescale. Jogging
Reply by ●August 21, 20072007-08-21
Vladimir Vassilevsky wrote:> > > Tim Wescott wrote: > >> Whenever I approach a DSP coding project I always try to identify the >> 1% of the code that will get called 99% of the time. That part gets >> coded in assembly by hand (and usually by my hand). The rest gets >> done in C or C++ (and largely by minions when I have them). > > It looks surprising but the asm coding of the narrow places can be done > by apprentices fairly well. This is because the asm part is usually > quite small, straightforward and very clearly defined.I think you are looking at that in the wrong way. Its not something that separates the beginner from the experienced. Its something that separates the talented from the less talented. Put an experienced person without a flair for optimised DSP type assembly coding on a task for a while. When they think its optimised, hand the code to a talented beginner, and watch them knock a few more cycles off.> > Unfortunately, the hardware interface layer and the general frame of the > application has to be coded by master... This is what they just can't > understand.This is something were experience counts more. Steve
Reply by ●August 21, 20072007-08-21
On Tue, 21 Aug 2007 02:57:26 +0000, joggingsong wrote:> On Aug 21, 6:01 am, Tim Wescott <t...@seemywebsite.com> wrote: >> Vladimir Vassilevsky wrote: >> >> > Tim Wescott wrote: >> >> >> Whenever I approach a DSP coding project I always try to identify the >> >> 1% of the code that will get called 99% of the time. That part gets >> >> coded in assembly by hand (and usually by my hand). The rest gets >> >> done in C or C++ (and largely by minions when I have them). >> >> > It looks surprising but the asm coding of the narrow places can be done >> > by apprentices fairly well. This is because the asm part is usually >> > quite small, straightforward and very clearly defined. >> >> Sometimes, yes. Usually I end up in a team with 'ordinary software' >> guys who are quite good at regular code, but don't really comprehend >> signal processing. These are guys who've been doing software for 20 >> years, can code OS interfaces accurately and quickly, but who starts to >> edge out of the room when you say words like "convolve", "summation" and >> "spectrum". >> >> They can do the "regular" stuff as well or better than me, and would >> take a lot of book learning to do signal processing stuff -- so I do it. >> >> Now, if I had a kid fresh out of DSP school... >> >> > Unfortunately, the hardware interface layer and the general frame of the >> > application has to be coded by master... This is what they just can't >> > understand. >> >> Yea, I shudder to think what I'd end up with trusting a rank beginner to >> do that -- I've seen supposed "masters" mess that one up, badly. >> >> -- >> >> Tim Wescott >> Wescott Design Serviceshttp://www.wescottdesign.com >> >> Do you need to implement control loops in software? >> "Applied Control Theory for Embedded Systems" gives you just what it says. >> See details athttp://www.wescottdesign.com/actfes/actfes.html > > Thanks, masters! > The reason why I ask this question is that a fuction which contains a > lot of branches is > inefficient in Freescale SC3400 core. Because there is many branches, > i think it is not > advisable to write it into assembly code. If a brach occurs, there is > several delay slots that can be used to execute.How can > delay slots be used efficiently?In my opnion, it is the job of c > compiler to > handle codes that contains many branch. But such code is efficient in > TI C64x core, so > I read the manual of TI C64x to find the reason. From the view of > architecture, there is no > big difference. So I think C compiler from TI outperforms C compiler > from Freescale. >You can make delayed branches more efficient in assembly by doing the calculation that determines the branch, then doing other things that need to happen no matter what afterward. This can't always be done, but when it can you'll speed things up. If you're curious about what the compilers are doing, have them compile your code to assembly language -- this is often helpful when you're working with a less than perfect optimizer, to figure out how to give it clues. -- Tim Wescott Control systems and communications consulting http://www.wescottdesign.com Need to learn how to apply control theory in your embedded system? "Applied Control Theory for Embedded Systems" by Tim Wescott Elsevier/Newnes, http://www.wescottdesign.com/actfes/actfes.html







