aot

Can I use mono's AOT feature to natively “pre-compile” .NET DLLs/EXEs to make them harder to reverse engineer?

空扰寡人 提交于 2019-12-10 19:10:44
问题 Can I use mono's AOT (Ahead of Time compilation) feature to natively "pre-compile" all or part of some of my own .NET DLLs (and or EXEs) to make them harder to reverse engineer? I'm using Windows (7 / x64 but I have an x86 XP machine as well) and .NET 3.5 (VS 2008) and I'm curious if mono/AOT can be/has been used for this purpose? (Tying them to x86 is acceptable at this point.) See also this question where I tried this and had no luck. 回答1: AFAIK, mono's AOT doesn't remove the metadata which

Creating AoT compatible Service Factories

会有一股神秘感。 提交于 2019-12-10 16:57:14
问题 I'm trying to create a service factory for a caching service. The major requirement is that a single service can be instanced with a different string each time. The final result will have multiple cache services each defined by a unique databaseName . Each cache can have one or more stores also defined by a unique storeName . Other services will be able to use these stores: mainCache = new Cache('main') ├── userStore = new Store(mainCache, 'user') │ ├── userService │ └── authenticationService

Is there a way to run with --aot-only on the iOS Simulator with Xamarin.iOS?

守給你的承諾、 提交于 2019-12-10 14:58:23
问题 When I test my app directly on the device, it crashes because I'm attempting to JIT-compile a method. I know why these crashes occur, I'm just trying to make them appear when I'm testing on the simulator instead. It's much easier than deploying to a device every time (it also takes less time). I tried adding --aot-only to the mtouch arguments but I get the "Unknown command line argument" error. 回答1: No, there's no AOT compiler shipped for x86. Now even if there was one it would: a) become a

Error while using @angular compiler in Angular 5 and AOT-Build

放肆的年华 提交于 2019-12-10 14:44:19
问题 i am using the Angular Compiler to compile components in runtime. This Code works fine, but if I want to use AOT-Prerendering the Component wont work, because Angular does not load the Compiler in AOT-Build. I've read about some Workarounds that wont Work in Angular5+ anymore. Do you have any solutions for this problem? Best Regards export class RuntimeCompilerComponent { template: string = ""; @ViewChild('dynamicComponent', { read: ViewContainerRef }) container: ViewContainerRef; constructor

System.ExecutionEngineException: Attempting to JIT compile method only in Debug Mode on device (MonoTouch)

青春壹個敷衍的年華 提交于 2019-12-10 13:24:22
问题 I have the following method: ApiResponse<T> PostMultipart<T>(string uploadUrl, NameValueCollection formParamters, params UploadFile[] uploadFiles); UploadFile is just a Poco: public class UploadFile { public string FilePath { get; set; } public string ContentType { get; set; } public string ParameterName { get; set; } } By calling that method, everyhing works fine on the simulator with "Debug|iPhoneSimulator" and on my iPod Touch with iOS 5.1.1 with "Release|iPhone". But when I am starting to

Angular AOT Relative paths in components

泪湿孤枕 提交于 2019-12-10 10:16:59
问题 I'm asking here because I could't find complete documentation online. The example here is too simple. I've an app with several components and some modules. After compile with ngc, I had lot of errors. The way I found to fix them was use relative paths. So I use ' moduleId: module.id, ' in all my components. But now the compiler tells me: ' Cannot find name 'module' ' As I understand, that is becuase I'm declaring the following compile options for AoT: { "compilerOptions": { "target": "es5", -

How Translate ByteCode to Machine Native Code

浪子不回头ぞ 提交于 2019-12-09 16:08:09
问题 I am looking for a translator for translate Java ByteCode to Machine Native Code before execution to improve performance. I heard that OpenOffice is made with JAVA, but I can't see any jar file in his installation folder, therefore, maybe there is a translator but I can't find it. Does anyone know some tool or comercial product to do that? Thanks! 回答1: There are multiple solutions. All are not ideal. Take a look here (exe4j). To learn more read this article. 回答2: Give a look to Avian JVM. See

mono --aot with MinGW: unknown pseudo-op: `.local'

为君一笑 提交于 2019-12-08 05:33:49
问题 Can I user mono's AOT feature to natively "pre-compile" .NET DLLs (and or EXEs) to make them harder to reverse engineer? If so, how do I get mono/AOT working in Windows 7? (I'm running x64 but the app is targeting x86 explicitly.) I just installed Mono 2.6.3 and MinGW 5.1.6 and I'm trying to AOT compile an exe (or a dll, it doesn't matter). I get screens and screens of error messages: C:\Users\jupdike\AppData\Local\Temp\mono_aot_XSDEAV:533: Error: junk at end of line, first unrecognized

How to mimic the AOT Export by layer functionality X++?

﹥>﹥吖頭↗ 提交于 2019-12-07 23:23:37
问题 I am attempting to programmatically duplicate the following steps in X++ In the AOT Tree right click on the root node and click "Export" Provide a file name Click the "Application object layer" checkbox Specify "cus" as the Application object layer Export the XPO to the file I've gotten as far as bring able to export entire AOT tree but I can't figure out a way to narrow it down to just the cus layer. Here is my current code sample ... TreeNode treeNode; FileIoPermission perm; #define

Running Instruments on a Xamarin.Mac application bundle

筅森魡賤 提交于 2019-12-07 10:20:27
问题 @miguel.de.icaza blogged about using Instruments to profile Mac apps built with Mono. However, that blog post was about executables run from the command line, not about .app bundles. The key point in the above blog post is that the app must be compiled with the AOT switch so that the static symbols are meaningful to Instruments. We've been trying to use the same approach to run Instruments against a Mac .app bundle, and have run into issues. We've tried running ~/dev/foo/bin/debug> MONO_ENV