Все вопросы: [jit]
70 вопросов
Как Java может встраиваться в границы виртуальных функций?
Я читал материалы о том, может ли Java быть быстрее C ++, и наткнулся на следующую цитату: Java может быть быстрее, чем C ++, потому что JIT могут встраиваться поверх границ виртуальных функций. Почему Java всегда будет медленнее C ++ ( обратная ссылка ) Что это значит?Означает ли...
Есть ли преимущество использования константных локальных переменных во время выполнения?
Помимо гарантии того, что они не могут быть изменены (в зависимости от ошибки компилятора), выполняет ли JIT какие-либо оптимизации для локальных переменных const? Например. public static int Main(string[] args) { const int timesToLoop = 50; for (int i=0; i<timesToLoop; i++) ...
JIT-оптимизация индексатора, который изменяется только последовательно
Мне любопытно, что происходит в этой ситуации: int i = 0; MessageBox.Show(i++.ToString ()); MessageBox.Show(i++.ToString ()); Array[i++] = Foo; Предполагая, что это единственный способ использования i в методе, удаляет ли JIT i и заменяет ли его буквальными значениями?
C # без .NET Framework
Было бы здорово писать быстрые нативные приложения с вызовами API и т. д. на современном кроссплатформенном языке программирования, таком как C #, не так ли?Например, если вы хотите написать простую утилиту для помощи ИТ-специалистам в установке вещей, для которых не нужны другие компоненты, на ...
High, Fluctuating '% Time in JIT' on Precompiled ASP.NET Website
With a 150 *.dll ASP.NET website that's precompiled (updatable), what are some possible causes for a '% Time in JIT' that is often quite high (> 60%) and fluctuating long after the application has warmed-up (all functionality accessed) and without app restarts or file changes that might gener...
how to run some code in memory?
I have a compiler which compiles assembly language to machine language (in memory). My project is in C# .net. Is there any way to run the memory on a thread? How can DEP prevent it? byte[] a: 01010101 10111010 00111010 10101011 ...
Does Sun's HotSpot have Objects Inlining optimization?
I read somewhere that there is such optimization as Objects Inlining. It collocates two objects together if they have the same life-time scopes and there is a lot of reads between them. And GC also treat them as one to move from one generation to another. But I didn't find any mention about thi...
Why does Psyco use a lot of memory?
Psyco is a specialising compiler for Python. The documentation states Psyco can and will use large amounts of memory. What are the main reasons for this memory usage? Is substantial memory overhead a feature of JIT compilers in general? Edit: Thanks for the answers so far. There are three ...
"Search" the members of an object in .NET's JIT debugger
I'm a relatively new employee at my current company, so I'm still "drinking from the fire hose" in terms of learning my way around the software and architecture. I've found myself dealing with some very large objects while writing unit tests, let's say for discussion a "SavedOrder", and I need to...
.NET assembly cache / ngen / jit image warm-up and cool-down behavior
I have an Input Method (IME) program built with C#.NET 2.0 DLL through C++/CLI. Since an IME is always attaching to another application, the C#.NET DLL seems not able to avoid image address rebasing. Although I have applied ngen to create a native image of that C#.NET 2.0 DLL and installed it in...
Compiling code directly into MSIL
Is there a way to complie code directly into Native Code instead of MSIL so that we can bypass JIT while executing the code on machine. If its possible. Please let me know the technique also. Thanks
can we implement a java interpreter in hardware that executes Java bytecodes natively?
if we implement java interpreter in hardware then how we can achieve architecture neutrality of java bytecode... does java uses JIT(just in time interpreter) ? and how all this is related to Virtual Machine concept of operating system and java virtual machine(JVM)
If optimizations are enabled will the JIT always inline this method?
I am not expecting a definite yes or no. Any knowledge you might have I will consider as an answer. private String CalculateCharge(Nullable<Decimal> bill, Nullable<Decimal> rate) { return ((bill ?? 0.0m) * (rate ?? 0.0m)).ToString("C"); }
How to see native code bytes from .NETCF JIT compiler on
Can anyone suggest a way (supported or unsupported) of getting a look at native code bytes compiled by the NETCF JIT compiler. I happen to be on WinCE6.0 on an ARM platform. I'm guessing that this can be done with a native debugger, but I'm trying to figure out (essentially) how I would get my ...
Building v8 without JIT
I would like to run some tests on v8 with and without JIT to compare performances. I know JIT will improve my average speed performance, but it would be nice for me to have some actual more detailed tests results as I want to work with mobile platforms. I haven't found how to enable or disable J...
Embedding Mono - Overhead of a native -> managed context switch
Anyone got any details on the overhead of a native -> managed context switch in Mono? Namely the overhead caused by calling .NET methods/creating .NET objects using the C API.
Is there any .Net JIT Support from chip vendors?
I know that ARM actually has some support for Java and SUN obviously, but I haven't really references seen any chip vendor supporting a .Net JIT compiler. I know IBM and Intel both support C compilers, as well as TI and many of the embedded chip vendors. When you think of it, all a JIT compiler...
Does the .NET CLR JIT compile every method, every time?
I know that Java's HotSpot JIT will sometimes skip JIT compiling a method if it expects the overhead of compilation to be lower than the overhead of running the method in interpreted mode. Does the .NET CLR work based upon a similar heuristic?
Dynamically Loading Page Class/Assembly: Type or name could not be found in the global namespace
I am trying to create an ASP.Net Web application that stores it's "content" (ASPX/ASCX and assemblies) somewhere other than the file system (Inside a service, for example) and loads them in dynamically as required. I have successfully created a VirtualPathProvider that takes care of reading ASPX...
Does JIT performance suffer due to writeable pages?
In the book Linkers and Loaders, it's mentioned that one of the reasons for executables to have a separate code section is that the code section can be kept in read only pages, which results in a performance increase. Is this still true for a modern OS? Seeing as Just in Time compilers are genera...
Smart JVM and JIT Micro-Optimizations
Over time, Sun's JVM and JIT have gotten pretty smart. Things that used to be common knowledge as being a necessary micro-optimization are no longer needed, because it gets taken care of for you. For example, it used to be the case that you should mark all possible classes as final, so the JVM ...
Оптимизирует ли .NET JIT вложенные операторы try / catch?
Я думал о вложенных операторах try / catch и начал думать о том, при каких условиях, если таковые имеются, JIT может выполнять оптимизацию или упрощение скомпилированного IL. Для иллюстрации рассмотрим следующие функционально эквивалентные представления обработчика исключений. // Nested tr...
Выполнение нативного кода JVM / CLR
Как JVM / CLR выполняет собственный код, скомпилированный JIT? Это путем инъекции кода или путем копирования кода в исполняемую память? Какие системные вызовы позволяют выполнять динамический код?
Как определить, что неуправляемое приложение было прервано
У меня есть приложение C #, которое вызывает неуправляемое приложение C ++ через Process.Start () На некоторых машинах, если это приложение C ++ прерывается, у меня остается диалоговое окно ошибки Just-In-Time Есть ли способ с C # определить, что приложение C ++ содержит ошибку, и просто п...
Как бы вы улучшили Dalvik? Виртуальная машина Android
В настоящее время я пишу статью о платформе Android. После некоторого исследования стало ясно, что у Dalvik есть возможности для улучшения. Мне было интересно, как вы думаете, как лучше всего использовать время разработчика для достижения этой цели? JIT-компиляция кажется большой, но я такж...
Запуск 32-битного приложения с использованием 32-битного com на 64-битной машине Windows
У меня есть приложение C #, использующее COM-объект C ++, оба созданы на 32-битной машине. Теперь мне нужно запустить их на 64-битной машине. Я зарегистрировал COM-объект. Соответствующая запись была создана в реестре компьютера \ hkey_classes_root \ wow6432node \ clsid {xxx}. Однако, когда я пы...
Оптимизация Java
Мне интересно, есть ли различия в производительности между String s = someObject.toString (); System.out.println (s); и System.out.println (someObject.toString ()); Глядя на сгенерированный байт-код, кажется, что он отличается. Может ли JVM оптимизировать этот байт-код во время вып...
Какие оптимизации выполняют компилятор C # и JIT?
Я продолжаю работу над компилятором C # для моего класса Compilers. На данный момент я почти закончил главы об оптимизации компилятора в моем учебнике. По большей части мой учебник не имел в виду компиляцию Just-In-Time, когда он был написан, и мне любопытно, какие виды статических оптимизаци...
Есть ли способ гарантировать, что функция скомпилирована JIT?
У меня есть функция, которая должна быть скомпилирована JIT (т.е. прямо перед ее вызовом). Есть ли атрибуты или настройки сборки, которые обеспечат это? Если нет, то как я могу гарантировать, что функция скомпилирована JIT? Спасибо! Я хочу сделать это, чтобы предотвратить сбой моего прил...