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.

458 questions
97
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
  • 3,018
  • 6
  • 28
  • 38
95
votes
16 answers

How to compile a .NET application to native code?

Let's say I want to run a .NET application on a machine where the .NET framework is not available; Is there any way to compile the application to native code?
Niyaz
  • 53,943
  • 55
  • 151
  • 182
83
votes
3 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
  • 147,333
  • 58
  • 291
  • 367
80
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…
NoAIUser
  • 3,966
  • 6
  • 34
  • 52
58
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
  • 18,571
  • 25
  • 126
  • 193
39
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,526
  • 2
  • 18
  • 20
26
votes
4 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
  • 56,458
  • 54
  • 195
  • 288
25
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,115
  • 13
  • 29
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
  • 692
  • 7
  • 25
21
votes
3 answers

Where can I find javascript native functions source code?

where can I find the source code of native js functions, for example I want to look at eval() function
ASD
  • 725
  • 3
  • 10
  • 19
20
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
  • 407
  • 1
  • 9
  • 22
19
votes
3 answers

Communication between webview and native code in a mobile app

I have to develop an e-commerce mobile app. In order to show the products into the app, I have to use a webview that point to a mobile web site. Associate to each product there is the “add to basket” button. Also this button is an element of the…
user422688
  • 597
  • 2
  • 10
  • 20
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,826
  • 1
  • 18
  • 15
17
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,549
  • 13
  • 64
  • 114
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
  • 11,523
  • 24
  • 106
  • 161
1
2 3
30 31