C#和我不可或缺的内联汇编代码 [英] C# and my indispensable inline assembly code
本文介绍了C#和我不可或缺的内联汇编代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我即将把我的C ++应用程序转移到C#。我之前的
应用程序的部分内容包括针对P4
处理器优化的内联SSE2汇编代码。我有什么选择将该部分集成到我的C#
应用程序中?
C#中没有内在支持这样的东西,对吧?
非常感谢!
问候,Teis
I am about to move my C++ application to C#. Parts of my previous
application consisted of inline SSE2 assembly code optimized for the P4
processor. What options do I have to integrate that part into my C#
application?
There are no such things as intrinsics support in C#, right?
Thank you very much!
regards, Teis
推荐答案
据我所知,这不是可能。你可以将你的程序集分离成一个DLL,你可以使用p / invoke从你的C#代码中调用它,但是
当然这不会被内联。
-
Bob Powell [MVP]
Visual C#,System.Drawing
有关ListView自定义绘图的所有想法都在Well Formed中。
http://www.bobpowell.net/currentissue.htm
用GDI + FAQ回答那些GDI +问题
http://www.bobpowell.net/gdiplus_faq.htm
在 http://bobpowelldotnet.blogspot.com 上阅读我的博客
>
" Teis Draiby" < TE ************* @ draiby.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP12.phx.gbl ...
As far as I know this is not possible. You could separate your assembly
code out into a DLL which you call from your C# code using p/invoke but of
course this won''t be inlined.
--
Bob Powell [MVP]
Visual C#, System.Drawing
All you ever wanted to know about ListView custom drawing is in Well Formed.
http://www.bobpowell.net/currentissue.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm
Read my Blog at http://bobpowelldotnet.blogspot.com
"Teis Draiby" <te*************@draiby.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
我是将我的C ++应用程序移动到C#。我之前的应用程序的部分内容包括针对P4
处理器优化的内联SSE2汇编代码。我有什么选择将该部分集成到我的C#
应用程序中?
C#中没有内在支持这样的东西,对吧?
非常感谢你!
问候,Teis
I am about to move my C++ application to C#. Parts of my previous
application consisted of inline SSE2 assembly code optimized for the P4
processor. What options do I have to integrate that part into my C#
application?
There are no such things as intrinsics support in C#, right?
Thank you very much!
regards, Teis
- 感谢您的回复!
任何方式我都能到达我心爱的大会对我来说很完美。我还是C#
新手;你的建议是使用DLL和p /调用最好的唯一解决方案
还是有其他我可以考虑的选项吗?
我的SSE2代码处理重新定义视频所以带宽和延迟都是问题
与装配部门沟通。
非常感谢,Teis
" Bob鲍威尔[MVP]" < bob@_spamkiller_bobpowell.net>在消息中写道
新闻:ei ************* @ TK2MSFTNGP11.phx.gbl ...
-Thank you for your reply!
Any way I reach my beloved assembly is perfect for me. I''m still a C#
novice; is your proposal using a DLL and p/invoke the best and only solution
or are there other options that I could take into consideration?
My SSE2 code handles reatime video so both bandwidth and latency are issues
while communicating with the assembly section.
thank you very much, Teis
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:ei*************@TK2MSFTNGP11.phx.gbl...
据我所知不可能。您可以将您的程序集代码分离为一个DLL,您可以使用p / invoke从C#代码中调用它,但是当然这不会被内联。
-
鲍勃鲍威尔[MVP]
Visual C#,System.Drawing
所有你想知道的ListView自定义绘图都在Well
Formed。 http://www.bobpowell.net/currentissue.htm >
使用GDI +常见问题回答这些GDI +问题
http:/ /www.bobpowell.net/gdiplus_faq.htm
阅读我的博客 http://bobpowelldotnet.blogspot.com
Teis Draiby < TE ************* @ draiby.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP12.phx.gbl ...
As far as I know this is not possible. You could separate your assembly
code out into a DLL which you call from your C# code using p/invoke but of
course this won''t be inlined.
--
Bob Powell [MVP]
Visual C#, System.Drawing
All you ever wanted to know about ListView custom drawing is in Well Formed. http://www.bobpowell.net/currentissue.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm
Read my Blog at http://bobpowelldotnet.blogspot.com
"Teis Draiby" <te*************@draiby.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
我即将移动我的C ++的C ++应用程序。我之前的应用程序的部分内容包括针对P4
处理器优化的内联SSE2汇编代码。我有什么选择将该部分集成到我的C#
应用程序中?
C#中没有内在支持这样的东西,对吧?
非常感谢你!
I am about to move my C++ application to C#. Parts of my previous
application consisted of inline SSE2 assembly code optimized for the P4
processor. What options do I have to integrate that part into my C#
application?
There are no such things as intrinsics support in C#, right?
Thank you very much!
regards, Teis
这真的是真的鲍勃?似乎很奇怪安德斯会留下那种能力
out(因为我确定我记得这个能力在Delphi中 - 当然这是Anders'背景的一部分
)。
也许他是为了代码安全/分离/可读性而做的?
-
-
Br,
Mark Broadbent
mcdba,mcse + i
====== =======
Bob Powell [MVP]" < bob@_spamkiller_bobpowell.net>在消息中写道
新闻:ei ************* @ TK2MSFTNGP11.phx.gbl ...
is this really true Bob? Seems odd that Anders would have left that ability
out (cos I''m sure I remember this ability in Delphi -which of course is part
of Anders'' background).
Maybe he''s done this for code safety/ seperation/ readability?
--
--
Br,
Mark Broadbent
mcdba , mcse+i
=============
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:ei*************@TK2MSFTNGP11.phx.gbl...
据我所知不可能。您可以将您的程序集代码分离为一个DLL,您可以使用p / invoke从C#代码中调用它,但是当然这不会被内联。
-
鲍勃鲍威尔[MVP]
Visual C#,System.Drawing
所有你想知道的ListView自定义绘图都在Well
Formed。 http://www.bobpowell.net/currentissue.htm >
使用GDI +常见问题回答这些GDI +问题
http:/ /www.bobpowell.net/gdiplus_faq.htm
阅读我的博客 http://bobpowelldotnet.blogspot.com
Teis Draiby < TE ************* @ draiby.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP12.phx.gbl ...
As far as I know this is not possible. You could separate your assembly
code out into a DLL which you call from your C# code using p/invoke but of
course this won''t be inlined.
--
Bob Powell [MVP]
Visual C#, System.Drawing
All you ever wanted to know about ListView custom drawing is in Well Formed. http://www.bobpowell.net/currentissue.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm
Read my Blog at http://bobpowelldotnet.blogspot.com
"Teis Draiby" <te*************@draiby.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
我即将移动我的C ++的C ++应用程序。我之前的应用程序的部分内容包括针对P4
处理器优化的内联SSE2汇编代码。我有什么选择将该部分集成到我的C#
应用程序中?
C#中没有内在支持这样的东西,对吧?
非常感谢你!
I am about to move my C++ application to C#. Parts of my previous
application consisted of inline SSE2 assembly code optimized for the P4
processor. What options do I have to integrate that part into my C#
application?
There are no such things as intrinsics support in C#, right?
Thank you very much!
regards, Teis
这篇关于C#和我不可或缺的内联汇编代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文