|
From: maxd\@inwind\.it <ma...@in...> - 2009-10-20 09:27:38
|
Hi guys, I need to run Valgrind on a AVR32 architecture (with Linux OS). As far as I know, there is no support for this architecture, and I was thinking about porting valgrind to AVR32. I read on the valgrind website that porting is not an easy task. Is there any of you which has experience in such a task, and that can provide me with a better estimation of the effort? What roughly needs to be done to port valgrind over a new architecture? Thanks a lot for any information you will provide. Cheers, Massimiliano |
|
From: John R. <jr...@bi...> - 2009-10-20 13:47:06
|
> I need to run Valgrind on a AVR32 architecture (with Linux OS)... > I was thinking about porting valgrind to AVR32... You need to write a disassembler which interfaces to Valgrind's internal framework for representation of code, and a code generator which interfaces to Valgrind's runtime supervisor. You must also be an expert on the implementation of pthreads (POSIX threads) for AVR32. Plan on a couple years of work. In the vast majority of cases the apps which run on AVR32 using Linux OS also can run on x86 using Linux OS. Therefore, run your apps under Valgrind on x86 (or even x86_64) while you are porting Valgrind to AVR32. You will get 97% of the benefit without waiting for the port to finish. x86 boxes are very inexpensive. They are so inexpensive that any significant application can afford to buy one, use it to run Valgrind, discard the x86 box after ONE YEAR, and still come out ahead. -- |