A compiler is a program which translates one language into another. The tag [compiler] should be applied to questions concerning the programming of compilers or for questions about the detailed inner workings of compilers. Don't use [compiler] for questions about options and settings for a ...
-2
votes
0answers
24 views
JVM language (java interop) - symbol resolving for java classes
I'm making a JVM language. The language is statically typed and must support full java interop like calling System.out.println(1). I can already emit bytecode for simple expressions, but I cannot ...
0
votes
2answers
25 views
How to escape whitespace using csc.exe (.NET built in C# compiler)
Like the title says, how do I escape white space passed in a file name to csc.exe? Caret's cannot be used. For example, file path C:\Users\user name\My Documents\file.cs I would normally do ...
0
votes
0answers
30 views
c# custom compiler Error:expected '='
I have managed to create a custom compiler in c# but what ever code I compile in the compiler the compiler gives me this error: expected '='
Here is the code I am using for the Parser as I think the ...
2
votes
1answer
56 views
What's the difference when putting header inside pch file?
In some tutorial, it is said that we can put some header files in the pch file.
After that, I still see that the same header are included in the individual header file?
why we put the header in the ...
0
votes
0answers
19 views
How to learn Just-in-Time compilation?
There are lots of books that explain the traditional static compilation theories and techniques, but those books do not say much about Just-in-Time compilers.
Although reading source code of JIT is ...
1
vote
5answers
69 views
Does assembly code ignore const keyword?
Does assembly code when used(linked) in a c project ignore const keyword declared before C datatypes and functions?? And can it modify the contents of the datatypes??
0
votes
1answer
49 views
!the compiler just leaves a stub! ,C++, find these “stubs” in .o file
What I wanted to achieve
At the time of compilation, the compiler knew the function call was
valid because you included the iostream header file, but since that
function was not part of the ...
1
vote
1answer
12 views
Building issue of Scikit-learn Python library in Windows
I'm trying to build scikit-learn library for Python which has it's build files as c++ files in a Windows 32-bit system. While building I get the following error.
undefined reference to ...
6
votes
1answer
56 views
Replace compiler when building Haskell project with Cabal
Is it possible somehow to configure cabal project to use different compiler than GHC? Additional is it possible to control this by some flags?
I want to compile my project with GHC or Haste (to ...
0
votes
1answer
58 views
Overwrite symbol in C/C++
Is it possible in C/C++ (or, with any compiler) to overwrite a symbol specifically? For example there's a library a.lib which contains, besides other functions, the implementation of foo(). Now, in my ...
-2
votes
2answers
52 views
How do compilers implement C++ inheritance?
C++ supports inheritance.
But how is it implemented in the compiler?
Does the compiler copy and paste all the implementation from parent to child?
1
vote
1answer
23 views
“windows cannot access the specified device..” error for minGW compiler in c++
I am MFC guy working on visual studio 2010 create some executables using visual studio!! but on linux and mac my executables are not working as usual windows!!.
So i decided to use "MinGW" compiler to ...
1
vote
3answers
51 views
getting compile-time date and time without macros
using c++
I compile my code on an automated schedule and need to use the time at which the code was compiled in the code itself. Currently I'm just using the __DATE__, __TIME__ macros to get the ...
1
vote
5answers
55 views
Creating a small programming language for beginners
Gabe here.
I'm 14 and have knowledge with Visual Basic and have played with C# and messed around a bit with a couple of other languages, such as HTML and java.
I would like to create my own ...
1
vote
2answers
43 views
Forward declaration or complete definition required [duplicate]
Although i have been using forward declaration for a considerable amount of time but never gave a thought to it seriously (my mistake)
Would be helpful if someone could give me pointers or any link ...