473,386 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Compile time analysis?

Is there any way to have some code run at compile time that analyses the
code being compiled.
We have som checks that run at runtime when you instantiate a class, but the
could be run at compiletime if there was a easy way to do so.

Kind Regards,
Allan Ebdrup
May 5 '06 #1
4 1334
Hello, Allan!

AE> Is there any way to have some code run at compile time that analyses
AE> the code being compiled.
AE> We have som checks that run at runtime when you instantiate a class,
AE> but the could be run at compiletime if there was a easy way to do so.

Take a look at following project,
( http://research.microsoft.com/phoenix/ )
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
May 5 '06 #2
you can write a plugin for FxCop or CodeAnalyzer.

--
"Allan Ebdrup" <eb****@noemail.noemail> schrieb im Newsbeitrag
news:un**************@TK2MSFTNGP02.phx.gbl...
Is there any way to have some code run at compile time that analyses the
code being compiled.
We have som checks that run at runtime when you instantiate a class, but
the could be run at compiletime if there was a easy way to do so.

Kind Regards,
Allan Ebdrup

May 5 '06 #3
Where can i get more info on this?
We're using VS2005 and dotNet 2.0 is the built-in code analysis what you
call "CodeAnalyzer"?

Kind Regards,
Allan Ebdrup

"cody" <de********@gmx.de> wrote in message
news:ej**************@TK2MSFTNGP02.phx.gbl...
you can write a plugin for FxCop or CodeAnalyzer.

--
"Allan Ebdrup" <eb****@noemail.noemail> schrieb im Newsbeitrag
news:un**************@TK2MSFTNGP02.phx.gbl...
Is there any way to have some code run at compile time that analyses the
code being compiled.
We have som checks that run at runtime when you instantiate a class, but
the could be run at compiletime if there was a easy way to do so.

Kind Regards,
Allan Ebdrup


May 5 '06 #4
the built in thing in vs2005 is fxcop. codeananalyzer is a 3rd party tool
but I do not know the webpage.
maybe you can google for csharp/.net code analysing tools.

--
"Allan Ebdrup" <eb****@noemail.noemail> schrieb im Newsbeitrag
news:%2***************@TK2MSFTNGP05.phx.gbl...
Where can i get more info on this?
We're using VS2005 and dotNet 2.0 is the built-in code analysis what you
call "CodeAnalyzer"?

Kind Regards,
Allan Ebdrup

"cody" <de********@gmx.de> wrote in message
news:ej**************@TK2MSFTNGP02.phx.gbl...
you can write a plugin for FxCop or CodeAnalyzer.

--
"Allan Ebdrup" <eb****@noemail.noemail> schrieb im Newsbeitrag
news:un**************@TK2MSFTNGP02.phx.gbl...
Is there any way to have some code run at compile time that analyses the
code being compiled.
We have som checks that run at runtime when you instantiate a class, but
the could be run at compiletime if there was a easy way to do so.

Kind Regards,
Allan Ebdrup



May 5 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gary N | last post by:
Sr. Database Administrator Permanent Position/Pittsburgh Pa $70-95K with full benefits Description A client of A.C.Coy's is looking for a Senior Database Administrator to join their team on a...
3
by: Eric Newton | last post by:
I'm wondering if there's a compile time cast gaurantee if any? Given the following: //----- begin sample code public interface IRegion { string Text { get; } RectangleF Area { get; } }
10
by: Amelyan | last post by:
It takes VS 2005 1, 2, and somtimes 3 MINUTES to compile ASP.NET 2.0 website when external DLL is modified. As a matter of fact, when I click 'Build', it looks like VS 2005 hangs for most of that...
5
by: Ray Tomes | last post by:
Hi Folks I am an old codger who has much experience with computers in the distant past before all this object oriented stuff. Also I have loads of software in such languages as FORTRAN and...
9
by: ThunderMusic | last post by:
Hi, I'd like to create a compile time error in my class... maybe there's a way already built in in the framework so I can achieve what I want... I have 2 constructors in my class. One of them...
1
by: Larry Epn | last post by:
I've created a project from Microsoft's "club.vsi". I don't want inline code so I've separated all aspx and ascx pages into code-behind pages. I'm compiling the project and continue to get this...
3
by: =?Utf-8?B?QWxleGFuZGVyIFd5a2Vs?= | last post by:
My application is taking way too long to build. It use to never take so long. I change only line and I think it recompiles all the classes in the assembly because it hangs forever. Here is the...
1
by: junky_fellow | last post by:
guys, Are you aware of any good tool that analyze the source code statically (ie at compile time and not at run time) ? This tool should be able to find out very obvious coding errors like...
27
by: CodeMonk3y | last post by:
gotta question on sizeof keyword does the sizeof keyword calcuates the size at compile time or run time ?? -- Posted on news://freenews.netfront.net - Complaints to news@netfront.net --
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.