调用时将采取多少步骤并使用多少内存? [英] How many step it will take and memory it will use When called?

查看:45
本文介绍了调用时将采取多少步骤并使用多少内存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

protected void func()
{
// blank function
}


call ...
 

func();




请指定语言




Please specify the language

推荐答案

无,那里没有代码.您到底想发现什么?
None, there is no code there. Exactly what are you trying to discover?


很难回答这样的问题,因为,您知道有一个及时的(JIT)编译器,您必须查看一下在JIT处生成的本机代码.我想这篇CodeProject文章可以为您提供帮助: JIT优化 [
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[^].


我想知道哪个如果
更好 我
情况一:
i want to know which is better if
i do
case one :
bool p = true ;
bool q = false;

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


情况二::


case two::

function fcheck(bool a , bool b)
{
   if (a==b)
   {
      return true;
   }
   else return false;
}


在这里


AND HERE

IF (FCHECK (TRUE , FALSE ))
{
// DO SOMETHING
}


根据内存使用情况方便


which is convenient according to memory usages


这篇关于调用时将采取多少步骤并使用多少内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆