Click here to Skip to main content
15,892,965 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
protected void func()
{
// blank function
}


call ...
 

func();



Please specify the language
Posted
Updated 23-Feb-12 22:56pm

None, there is no code there. Exactly what are you trying to discover?
 
Share this answer
 
It is hard to answer such a question because, you know there's a just in time (JIT) compiler, and you have to look at JIT produced native code. I suppose this CodeProject article could help you: JIT Optimizations[^].
 
Share this answer
 
i want to know which is better if
i do
case one :
C#
bool p = true ;
bool q = false;

if (p==q)
{
   // do something
}
else 
{
   // do otherthing 
}

case two::
C#
function fcheck(bool a , bool b)
{
   if (a==b)
   {
      return true;
   }
   else return false;
}

AND HERE
C#
IF (FCHECK (TRUE , FALSE ))
{
// DO SOMETHING
}

which is convenient according to memory usages
 
Share this answer
 
v2
Comments
Richard MacCutchan 24-Feb-12 7:10am    
Case 1 is better as it avoids a subroutine call and return, with possible associated save and restore of registers. However, for such a small piece of code it is largely irrelevant as you are talking about a very few bytes of memory and a very few nanoseconds of execution time.
Photon_ 24-Feb-12 23:35pm    
i'm showing an example but it have a large domain
Richard MacCutchan 25-Feb-12 5:30am    
Sorry, I don't understand.
Photon_ 27-Feb-12 3:46am    
I said i've given this example but i am to do some large manipulations in my program
Richard MacCutchan 27-Feb-12 7:02am    
I Still don't understand. Try editing your original question and give us some details about what you are trying to do and what errors or other problems you are facing.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900