Questions tagged [native-code]

Machine code and assembly code is sometimes called native code when referring to platform-dependent parts of language features or libraries.

Machine code and assembly code is sometimes called native code when referring to platform-dependent parts of language features or libraries.

447 questions
91
votes
15 answers

How to compile a .NET application to native code?

If I want to run a .NET application in a machine where the .NET framework is not available; Is there any way to compile the application to native code?
Niyaz
  • 49,409
  • 55
  • 142
  • 181
87
votes
5 answers

Can I compile Java to native code?

Is there any way to compile from Java to standalone (or library) machine code without requiring a JVM?
barroco
  • 2,858
  • 4
  • 25
  • 38
79
votes
2 answers

How to use addr2line in Android

I am stuck with my app, as I am unable to debug as it is a multithreaded one and crashes with error SIGSEGV. I get lot of information from LogCat, which gives me addresses in my native library. It would be helpful if I could convert these addresses…
Anil Arrabole
  • 3,628
  • 5
  • 31
  • 51
69
votes
2 answers

What does " [native code] " mean?

I tried to investigate the jQuery code, so I used this: document.write($.constructor); jsfiddle I got this result: function Function() { [native code] } What does [native code] mean? Why can't I see the real code? Tested with Google-Chrome
gdoron is supporting Monica
  • 136,782
  • 49
  • 273
  • 342
48
votes
8 answers

Is there a native machine code compiler for JavaScript?

Is there a native machine code compiler for JavaScript? I'm not talking about a VM. If it doesn't exist can it be done? I am wondering if it can be compiled to binary due to the dynamic nature of the language.
the_drow
  • 17,134
  • 23
  • 116
  • 185
35
votes
1 answer

How to unload library (DLL) from the JVM

I need to unload a DLL that was loaded with System.loadLibrary(..), anyone know if this is possible?
Alon Aizenberg
  • 1,486
  • 2
  • 18
  • 20
25
votes
1 answer

Profiling C# and mscorlib.ni.dll

I am currently profiling a console application with CPU sampling. The OS is Windows 8 Enterprise 64 bit with Microsoft Visual Studio Ultimate 2012 Update 4. I see that the 34% of Exclusive Samples is inside the mscorlib.ni.dll. Then on the Modules…
Kendar
  • 658
  • 9
  • 22
24
votes
2 answers

Is it possible to use sun.misc.Unsafe to call C functions without JNI?

A piece of C/C++ code could provide a JNI method with an array of function pointers. But is there a way to call to the stack the functions that array's pointers are pointing to, directly from inside Java code (without using JNI or similar)? JNI…
FinnTheHuman
  • 1,035
  • 10
  • 28
24
votes
3 answers

Compile JavaScript to Native Code with V8

Is it really possible, with Google's V8 Engine, to compile JavaScript into Native Code, save it as a binary file, and execute it whenever I want through my software envorinment, on any machine?
Alon Gubkin
  • 53,054
  • 52
  • 181
  • 282
18
votes
2 answers

Android ClassLoader memory leak

Motivation: I am using some native libraries in my Android application and I want to unload them from the memory at some point in time. Libraries get unloaded when ClassLoader that loaded class that loaded native libraries gets garbage collected.…
ph4r05
  • 1,516
  • 1
  • 16
  • 15
16
votes
3 answers

How to use ARM Assembly code in an Android project?

I'm not particularly experienced with Assembly and ARM, but I was able to write a few routines in it and I'd like to see how they run on an ARM-equipped Android device (Nexus S). What is the procedure for including an Assembly code file into an…
Phonon
  • 12,013
  • 12
  • 57
  • 111
16
votes
1 answer

How to Compile with ngen.exe and How to run the native code that is generated?

I want to compile a C# program using ngen command line for a special purpose. So I create a console application in VS2010 and named it ngentest. A file by name ngentest.vshost.exe is created in vs2010\projects\ngentest\bin\debug. I used this file as…
Azad
  • 367
  • 1
  • 6
  • 21
16
votes
3 answers

What makes recent versions of JVM faster?

I've seen multiple claims recently that talk about how the Java (and JVM-based languages such as Scala) are comparable in performance to C/C++ code. For example, from the description of the ScalaLab project: The speed of Scala based scripting,…
Soumya Simanta
  • 10,777
  • 23
  • 95
  • 153
14
votes
4 answers

Exporting a native C function from a .net DLL?

I have a .net assembly written in C#, and I'm looking to export a native C function from the assembly. I have an application which will perform a 'LoadLibrary()' on any DLL's found in a 'plugin' folder. After loading the DLL, the application…
Andrew
  • 819
  • 1
  • 8
  • 9
14
votes
5 answers

Why is it that bytecode might run faster than native code

Java is slow. That's more than an "urban legend", it seems to be a fact. You don't use it for live-coding because of latency and you don't use it for clusters/parallel computing. There are thousands of benchmarks out there, specially "Java vs C# vs…
ferostar
  • 6,936
  • 6
  • 35
  • 60
1
2 3
29 30