recompile

Is it possible to translate an assembly language to LLVM IR, optimize it and then recompile it to a different architecture?

徘徊边缘 提交于 2019-12-06 19:25:38
问题 Is it possible to translate an assembly language to LLVM IR, optimize it and then recompile it to a different architecture? How would you handle "push"es and "pop"s on the stack in the IR? This is the simplest objection I found, but I'm sure that there're tons like this. I'm planning to build a dynamic recompiler, and it seems that this would be an excellent solution, since LLVM would automatically optimize my code for the new architecture. Is all this possible with LLVM? Thanks 回答1: This is

Fix bugs in .NET program without access to source

被刻印的时光 ゝ 提交于 2019-12-05 18:03:53
问题 I have a program i frequently use that is made with .NET. This program has a small bug that is very annoying and the developer to the app is nowhere to be found. I have found the location of the problem in reflector and just want to add a single if-statement here and then recompile the program. What is the easiest way to do this? I have tried using the export-function in reflector but it doesn't seem to work perfectly. For example alot of using-directives are missing and enums that are cast

When does an ASP.NET Website project recompile?

感情迁移 提交于 2019-12-05 16:12:32
As Maurico and codeka first stated, don't use the default InProc sessions if you don't want your sessions to be affected by website recompiles and application recycles. A list of what causes whole website recompile: By default, when any change is made to a top-level file in a Web site, the whole site is recompiled. Top-level files include the global.asax file and all files in the bin/ and App_Code/ folders. modifying web.config a configuration include file change, if the SectionInformation.RestartOnExternalChanges property is true <section name="MyAppSettings" type="System.Configuration

Homebrew recompile from edited source code

狂风中的少年 提交于 2019-12-05 13:57:06
Is there a way to to recompile from an edited source code via homebrew? I did a change on the source user.hpp of Boost which I now want to recompile Boost with. I tried --build-from-source and --enable-bar but neither works, saying that it is already installed. The only way I can recompile is by reinstall but that simply overwrites the source code I changed. Any idea? First option Download the archive, edit the files, and zip the archive as homebrew does (same name and format). If you kept the original folder structure created by Homebrew, you can put the modified archive in ~/Library/Caches

Is it possible to translate an assembly language to LLVM IR, optimize it and then recompile it to a different architecture?

倾然丶 夕夏残阳落幕 提交于 2019-12-05 00:54:05
Is it possible to translate an assembly language to LLVM IR, optimize it and then recompile it to a different architecture? How would you handle "push"es and "pop"s on the stack in the IR? This is the simplest objection I found, but I'm sure that there're tons like this. I'm planning to build a dynamic recompiler, and it seems that this would be an excellent solution, since LLVM would automatically optimize my code for the new architecture. Is all this possible with LLVM? Thanks Richard Pennington This is a similar question: Recompile a x86 code with LLVM to some faster one x86 The answer is

do we need to recompile libraries with c++11?

时光怂恿深爱的人放手 提交于 2019-12-04 19:37:19
问题 This is a very uninformed question, but: I would like to start using C++11. Can I continue to use my large collection of libraries which were compiled with my old gcc 4.2.1 compiler or do I need to recompile them all with a new compiler? I would think (or hope) the answer is no, but I am only a dabbler. So that I may have at least part of my ignorance removed, can you explain why in either case? Thanks 回答1: Yes, you should. The weaker reason is not binary compatibility, the problem is about

Fix bugs in .NET program without access to source

那年仲夏 提交于 2019-12-04 03:00:51
I have a program i frequently use that is made with .NET. This program has a small bug that is very annoying and the developer to the app is nowhere to be found. I have found the location of the problem in reflector and just want to add a single if-statement here and then recompile the program. What is the easiest way to do this? I have tried using the export-function in reflector but it doesn't seem to work perfectly. For example alot of using-directives are missing and enums that are cast back and forth to ints are also not exported properly. I believe i can fix this with some work but i'm

do we need to recompile libraries with c++11?

风流意气都作罢 提交于 2019-12-03 13:02:24
This is a very uninformed question, but: I would like to start using C++11. Can I continue to use my large collection of libraries which were compiled with my old gcc 4.2.1 compiler or do I need to recompile them all with a new compiler? I would think (or hope) the answer is no, but I am only a dabbler. So that I may have at least part of my ignorance removed, can you explain why in either case? Thanks Yes, you should. The weaker reason is not binary compatibility, the problem is about expectations. A C++11 enabled compiler will expect a number of features to be available (move constructors

Recompile a x86 code with LLVM to some faster one x86

六月ゝ 毕业季﹏ 提交于 2019-12-03 11:31:35
问题 Is it possible to run LLVM compiler with input of x86 32bit code? There is a huge algorithm which I have no source code and I want to make it run faster on the same hardware. Can I translate it from x86 back to x86 with optimizations. This Code runs a long time, so I want to do static recompilation of it. Also, I can do a runtime profile of it and give to LLVM hints, which branches are more probable. The original Code is written for x86 + x87, and uses no SSE/MMX/SSE2. After recompilation It

dotnet dll decompile and change the code

北城以北 提交于 2019-12-03 04:16:51
问题 I need to change the code of the .NET DLL. I am able to see the code by compilable the DLL with .NET reflector, but I am not able to change the code of the DLL. With .NET Reflector, I decompile the code and saved in to my hard disk, but when i am able to recompile the code its giving errors. Few code is decompiled in binary format few code is decompiled with c#. Is there any tool to change and recompile the DLL? Here are the tools I used for trying to decompile the DLL: ILSpy DisSharp