Re: Can you write code directly in CIL ???
- From: "Peter Olcott" <olcott@xxxxxxx>
- Date: Mon, 26 Dec 2005 19:50:35 -0600
I need the best possible execution speed. I have found that there is a large
difference in the quality of the code generated by the various compilers. I have
16,000 hours of development time in my current project. There is a 100 line
function that must take no longer than 1/10 second to execute. I can just barely
achieve this with MSVC++ 6.0. MSVC++ 7.0 has had some of its optimizations
disabled. I eventually will need to port this to C# .NET. This is a case where
hand tweaked assembly language would be appropriate. I figured that hand tweaked
CIL would be the .NET equivalent of hand tweaked assembly language.
"Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:OCvd7unCGHA.2644@xxxxxxxxxxxxxxxxxxxxxxx
> Peter,
>
> You can write it, but you would have to create a module with IL, and then
> compile that into your assembly (or just write the whole assembly).
>
> Also, what optimizations do you think you can make? Ultimately, you suffer
> from the fact that Windows is not a real-time OS, and nothing you can do will
> change that. On top of that, the JIT is what's going to optimize your code
> again after you try to, so you might actually end up hurting yourself more
> than helping yourself.
>
> If you post the code you are trying to optimize, we can try and tell you
> where you might make some improvements, but dipping down to the IL level is
> most likely not going to help you much.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
>
>
> "Peter Olcott" <olcott@xxxxxxx> wrote in message
> news:7t%rf.37887$QW2.9998@xxxxxxxxxxxxx
>> Cab you write code directly in the Common Intermediate language? I need to
>> optimize a critical real-time function.
>>
>
>
.
- Follow-Ups:
- Re: Can you write code directly in CIL ???
- From: mablejune
- Re: Can you write code directly in CIL ???
- From: Nicholas Paldino [.NET/C# MVP]
- Re: Can you write code directly in CIL ???
- References:
- Can you write code directly in CIL ???
- From: Peter Olcott
- Re: Can you write code directly in CIL ???
- From: Nicholas Paldino [.NET/C# MVP]
- Can you write code directly in CIL ???
- Prev by Date: Re: How to center the Panel scroll bars?
- Next by Date: Can't share folder to individual user account with WMI.
- Previous by thread: Re: Can you write code directly in CIL ???
- Next by thread: Re: Can you write code directly in CIL ???
- Index(es):