Originally posted by liam
View Post
Announcement
Collapse
No announcement yet.
JIT Compiler Support Might Be Added To GCC 4.9
Collapse
X
-
-
-
Originally posted by JS987 View PostIt should be possible to compile bytecode to native executable or library during installation of application or library, but that library doesn't seem to target such case.
Comment
-
Originally posted by JS987 View PostComplete applications with libraries shouldn't be JIT compiled because they will suffer from same problems like Java ones - slow start-up, high memory usage.
Comment
-
Originally posted by Luke_Wolf View PostSlower to start up the first time sure (assuming they're caching the binary), but High Memory consumption isn't going to happen. Excessive memory consumption is a language design issue related to things like how much metadata you're carrying around, whether the code is garbage collected or not, otherwise it's just pointer sizes and how much stuff is being optimized out... So no the memory consumption should be about the same as it is now not higher.
- owned by root - read-only for user in order system would be secure - native code can't be easily modified
- world readable, which enables memory sharing with mmap by every process of every user which is necessary to minimize size of private memory of every process
Comment
-
Originally posted by JS987 View PostCaching isn't possible because all native code (libraries, executables) have to be stored in files (example: files in /usr/bin, /usr/lib) which are:
- owned by root - read-only for user in order system would be secure - native code can't be easily modified
- world readable, which enables memory sharing with mmap by every process of every user which is necessary to minimize size of private memory of every process
It would allow to mix bytecode independent of the source language(assuming the language is supported by gcc) I assume, which might be interesting.
Comment
-
Originally posted by liam View PostPresumably they would only need to be jitted once then stored as binaries.Last edited by nbtrap; 18 October 2013, 08:32 AM.
Comment
Comment