Any programming language that is primarily implemented by using a compiler, i.e. programs written in the language are translated into machine code before execution.
Questions tagged [compiled-language]
43 questions
3
votes
4 answers
Compilation vs. Interpretation, Python has unexpected behaviour
I get an unexpected behavior of python execution.
if True:
print("Hello")
else:
I am an error. what can you do about it?
Now, this code doesn't raise a SyntaxError because the control never goes into the else statement. In compiled…

Abhishek Bera
- 121
- 1
- 5
3
votes
1 answer
How do I declare a private class member in D?
This program will echo "C". How do I disallow that?
import std.stdio;
void main() {
class A {
private void B() {
writeln("C");
}
}
auto D = new A;
D.B();
}

Alexander Aleksandrovič Klimov
- 746
- 6
- 18
3
votes
1 answer
Why is there such a clear cut between interpreted and compiled languages?
When learning a compiled language like C or C++, you get to know the compiler. In order to run your code, you have to compile it first. Compiling your code translates it from a textual representation into something that can be executed. The…

bastibe
- 16,551
- 28
- 95
- 126
2
votes
1 answer
Why are there no languages that are both interpreted and (really) compiled?
I am an (old) engineer not a programmer so forgive me for asking a naïve question.
My understanding is that to get really fast execution times for a program, it needs to be compiled to native machine code. And there are a relatively small number of…

Salem Engineer
- 29
- 2
2
votes
0 answers
Track activity in deployed AppStore iOS apps
I want to know what is going on in the apps on my iPhone when I press a button or trigger an action of any kind and see what it is doing with my data. Is there a way to track the activity of an app from the AppStore on my iPhone even if decompiling…

Walker Firmin
- 53
- 6
2
votes
2 answers
Steps carried out in case of INTERPRETER and COMPILER
What exactly the difference between interpreted and compiled language.For example I want print the numbers from 1 to 100 .How exactly the sequence of operations takes place in case of interpreter and compiler.
Further,If possible please provide me…

JavaUser
- 25,542
- 46
- 113
- 139
2
votes
1 answer
Any implicit else in a bracket less if-statement? Language unknown
After getting in a discussion about the iOS Crypto Flaw also discussed on Ars Technica, someone mentioned that they encountered a case where, the line following a bracket-less if expression, was treated as an else.
if ()

vol7ron
- 40,809
- 21
- 119
- 172
1
vote
0 answers
Is there a way to delay the choice of calling convention without leaving too much work to the linker?
TL;DR:
Is there a way to specify a calling convention/a way a function will retrieve its argument/the return value(s) of another function after compilation?
Is it possible to generate assembly/machine code that can later be further optimized…

Xenos
- 155
- 5
1
vote
1 answer
Window Creation in Beef Language
So recently I have been learning about compilers and llvm and all of that kinda stuff. But what is really bugging me, is Beef. Beef is a cool programming language that I just learned existed but it is like C# Pro. But the one part I don’t understand…

James51332
- 164
- 11
1
vote
0 answers
Speed up parallelised solving of ODE containing events
The following code represents a simplified version of my actual problem:
# Libraries
library(desolve)
library(parallel)
# End time
max_time <- 300
# Time vector
time <- seq(0, max_time, 0.1)
# Number of events
n_events <- c(6, 60, 600, 6000)
#…

Pascal
- 563
- 1
- 3
- 15
1
vote
1 answer
memset() and memcpy() using D slices
In the D language, what are the equivalents to the following statements
assuming the code :-
int size = 8;
int shift = 1;
int[size] skip;
int[size] suff;
memcpy(&skip[0], &skip[0]+shift, (m-shift)*(int.sizeof));
memset(&skip[0]+(m-shift),0,…

Walker
- 323
- 1
- 12
1
vote
1 answer
Why use an interpreted language to make a compiled one adjustable "on-the-fly"?
I've read about certain programs, such as the Civilization video game series, using interpreted components (Lua in this case) to interface with compiled ones (C++ I assume) to allow for user extendability through mods and such. Why is invoking a…

Aleksey Bilogur
- 3,686
- 3
- 30
- 57
1
vote
8 answers
What is recommended for plug in systems in applications?
What are the “normal” ways to do plug-ins in compiled languages (C#/C/C++/D)? I am specifically interested in language agnostic approaches but language specific is not unacceptable.
For the time being, “compile time” plug in approaches (just include…

BCS
- 75,627
- 68
- 187
- 294
1
vote
3 answers
Performance of computing constants
How do the following two blocks of pseudo-code compare in terms of speed for both compiled languages and interpreted languages? (Ignoring number of digits)
Essentially, is there any performance loss by writing variables as a function of several…

Wehrdo
- 560
- 6
- 12
0
votes
0 answers
If Javascript code gets executed line by line then, how AST (Abstract syntax tree) works?
Javascript is an interpreted language which executes code line by line. On the other hand, AST (Abstract Syntax Tree) inside the Javascript engine, created the data structure of the whole code and converts into machine code. Then how line by line…

atq
- 11
- 3