Awesome q2a theme
Ask us anything
Toggle navigation
Email or Username
Password
Remember
Login
Register
|
I forgot my password
Questions
Unanswered
Tags
Users
Ask a Question
Download code into memory on the different programming languages?
0
like
0
dislike
33
views
I read somewhere, but never found again that all the JS code is loaded into RAM and then runs. That is logical.
In other languages, or are there differences?
Interested in C, C++, Java, C#, PHP.
programming
asked
Apr 13, 2019
by
KnightForce
|
33
views
answer
comment
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
2
Answers
0
like
0
dislike
The most primitive of shells, for example bash reads the script file from disc line by line and simultaneously perform each read line. Conventional interpreters read the file, analyze the code, build
an AST
and have it perform. Sophisticated interpreters (such as PHP, Javascript V8 and CPython) after building the AST, compile it into bytecode and execute the bytecode already. This files most often have this bytecode interpreted languages remains only in memory and not saved to disk. In contrast, in Java and C#, the stages of analysis code and compile it into bytecode is separated from the runtime bytecode. The compiled code is saved in a file and after running the virtual machine. Compiled languages (C, C++ and other) compile the AST into bytecode not, and once in machine code. However, they are lately increasingly using
LLVM
.
answered
Apr 18, 2019
by
saboteur_kiev
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
For compiled languages:
1. There are overlay structures that are loaded on demand into memory but it is those times when DOS was
2. There are plugins which are dll and not necessarily loaded when the program starts
For interpreted - it seems logical that downloaded into memory and prointerpretirovana.
answered
Apr 18, 2019
by
sergey-gornostaev
ask related question
comment
Please
log in
or
register
to add a comment.
Related questions
0
like
0
dislike
2
answers
Depends on whether the optimization of programs from programming languages?
asked
Apr 25, 2019
by
davc
programming
0
like
0
dislike
6
answers
What programming languages can overpower without mathematics?
asked
Apr 11, 2019
by
Vamdy
programming
math
0
like
0
dislike
6
answers
The "philosophy" of all programming languages. Myth or reality?
asked
Apr 13, 2019
by
AlexandrMilaev
programming
0
like
0
dislike
3
answers
As in programming languages implements asynchronous behavior?
asked
Apr 1, 2019
by
Argentum88
javascript
programming
asynchronous-programming
0
like
0
dislike
7
answers
What is more important in programming languages, performance or usability?
asked
Apr 1, 2019
by
Gios
programming
Most popular tags
javascript
php
css
html
jquery
wordpress
python
linux
web-development
mysql
android
windows
java
layout
c#
computer-networks
node.js
cpp
iron
yii
vue.js
1C-Bitrix
react
laravel
django
nginx
system-administration
search-engine-optimization
api
ubuntu
the-it-education.
ajax
sql
programming
hosting
cms
design
apache
google-chrome
bootstrap
Vkontakte
macos
google
network-administration
git
laptops
algorithms
regular-expressions
unity-game-engine
email
angular
database
network-equipment
software
wooŃommerce
debian
.net
ios
information-security
video
law-in-it
browsers
books
parsing
wi-fi
game-development
career
htaccess
postgresql
telegram
mikrotik
mobile-development
ruby-on-rails
the-domain-name-system
modx
Yandex
c
json
opencart
Habr
freelance
vpn
asp.net
windows-server
symfony
bots
hard-drives
math
qt
DIY
audio
frontend
payment-system
bash
electronics
gulp.js
user-interface
docker
online-shopping
110,608
questions
257,187
answers
0
comments
40,796
users