Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Re: Tips to analyze a project with thousands of files

Reply
Thread Tools

Re: Tips to analyze a project with thousands of files

 
 
Jorgen Grahn
Guest
Posts: n/a
 
      10-20-2012
On Sat, 2012-10-20, Like Learn wrote:
> My task is to analyze a legacy firmware project using Qualcomm MDM9X00
> baseband chip with thousands of files (literally) to fix a bug. There is no
> design documents about the project. The project is qriting in C++, halve of
> them are commented in Doxygen format, while the other halve not. I don't
> have the hardware to run the firmware or debugging. The only thing I have is
> a list of debugging outputs of the printfs in firmware collected by the
> client.


The task is almost never to "analyze" something. IME, it's only by
doing actual useful work (changing a feature, doing internal changes
or testing) that you can learn more about a large piece of code.

I have often been in that situation. It's frustrating. But you have
to accept it:

"I cannot understand all of this at once. There are big parts I will
probably never understand. Most of this code is fit for
thedailywtf.com. But I can fix this particular bug, and learn
something while doing it, and the code will be better afterwards."

> I spent one day today and even couldn't find out where the firmware starts.
> Obviously it was not the main function. The comments are not in pure
> English, frustrated. Any tip to find out the starting line of an ARM
> project?


Build it and look at the symbol table of the final image. That is
often a good supplement to looking at the source code.

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
 
Reply With Quote
 
 
 
 
Jorgen Grahn
Guest
Posts: n/a
 
      10-21-2012
On Sat, 2012-10-20, Jorgen Grahn wrote:
> On Sat, 2012-10-20, Like Learn wrote:
>> My task is to analyze a legacy firmware project using Qualcomm MDM9X00
>> baseband chip with thousands of files (literally) to fix a bug.

....
> The task is almost never to "analyze" something. IME, it's only by
> doing actual useful work (changing a feature, doing internal changes
> or testing) that you can learn more about a large piece of code.

....

Only now did I see that "Like Learn" didn't say the task was just "to
analyze", but "to analyze ... to fix a bug". So my advice must have
looked a bit strange. Sorry!

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Tips to analyze a project with thousands of files Werner C++ 1 10-25-2012 08:44 PM
Re: Tips to analyze a project with thousands of files Stuart C++ 0 10-23-2012 11:00 AM
Re: Tips to analyze a project with thousands of files ctgqumgf@sharklasers.com C++ 1 10-21-2012 11:55 AM
Re: Tips to analyze a project with thousands of files Öö Tiib C++ 0 10-20-2012 04:14 PM
Enjoy Thousands Of Tips and Trikes ******ãÊÝÜÜÜÜÜÜÜÇÆÜÜÜÜÜÜá****** Python 0 07-27-2010 11:13 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57