• Welcome to Valhalla Legends Archive.
 

C# code analyser

Started by Arta, May 23, 2006, 08:04 AM

Previous topic - Next topic

Arta

Does anyone know of a good C# code analyser? Like CodeSurfer, but for C#.

TIA.

MyndFyre

I haven't heard of anything like that.  The closest I can think of would be FxCop, but that's not a code analysis tool, it's a binary analysis tool, and it only verifies that you're complying with best practices.

If you'd like to write one, I may be interested in participating.  ;-)
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Arta

hmm, perhaps in the future. I'm concentrating on analysing machine code at the moment. Thanks for the info :)

FrOzeN

ANTS Profiler does what you need, though, it costs $295. But it does have a 14 day trial.
~ FrOzeN

Maddox

Quote from: Arta[vL] on May 24, 2006, 11:36 AM
hmm, perhaps in the future. I'm concentrating on analysing machine code at the moment. Thanks for the info :)
C# compiled into machine code? WHERE?!
asdf.

Arta

err, nowhere that I know of! The c# thing was a little side job, not related to the machine code stuff.

K

Quote from: Maddox on June 05, 2006, 05:12 AM
Quote from: Arta[vL] on May 24, 2006, 11:36 AM
hmm, perhaps in the future. I'm concentrating on analysing machine code at the moment. Thanks for the info :)
C# compiled into machine code? WHERE?!

http://msdn2.microsoft.com/en-us/6t9t5wcf.aspx

Maddox

Quote from: K on June 05, 2006, 10:45 AM
Quote from: Maddox on June 05, 2006, 05:12 AM
Quote from: Arta[vL] on May 24, 2006, 11:36 AM
hmm, perhaps in the future. I'm concentrating on analysing machine code at the moment. Thanks for the info :)
C# compiled into machine code? WHERE?!

http://msdn2.microsoft.com/en-us/6t9t5wcf.aspx
Nice!
asdf.

shout

#8
When I get home I shall play around with this and IDA for a while. Note this is on the schools VS.NET 2003.


(Sorry about crappy image hosting site)


------ Build started: Project: Dundracal, Configuration: Debug .NET ------

Preparing resources...
Updating references...
Performing main compilation...

Build complete -- 0 errors, 0 warnings
Building satellite assemblies...
Performing Post-Build Event...
Microsoft (R) CLR Native Image Generator - Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Dundracal, Version=0.0.0.2, Culture=neutral, PublicKeyToken=null <debug>



---------------------- Done ----------------------

    Build: 2 succeeded, 0 failed, 0 skipped


MyndFyre

You shouldn't ngen the image as IIRC it becomes impossible to debug.  Once you're done with development you can run it, but it's not a good idea to do it post-every-build.

Alternatively, on 2.0, you can enable the .NET Native Image Generator service.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

shout

There is a /debug option... I would think it would allow you to debug. If not they need to name stuff better.