Most voted "compilers" questions
A compiler is a computer program (or a group of programs) that, from a source code written in a compiled language, creates a semantically equivalent program, but written in another language, object code.
Learn more…63 questions
Sort by count of
-
133
votes9
answers41109
viewsWhat is a programming language, IDE and compiler?
Starting in programming is not always easy, besides having to learn to "write the code", there are dozens of terms, technologies, among other things that need to be studied. In order to help those…
-
82
votes1
answer9485
viewsHow is a compiler made?
A compiler is programmed in what language? All compilers of a language are equal or one may exist better than another?
-
46
votes2
answers3637
viewsThe first programming language
Until the time when computers were purely mechanics and were programmed by punch cards I understand how it works. Later, when the first "digital" computers operated with valves and relays appeared,…
assembly compilers language-design computer-theoryasked 8 years, 2 months ago Michael Pacheco 1,657 -
40
votes5
answers3496
viewsWhat are the main advantages and disadvantages of using an LL parser or an LR?
I’m building a parser for a programming language. Grammar does not need to meet all the complexities of a language like C++ or Lisp. I have a moderate knowledge of language building but little…
-
34
votes2
answers1952
viewsWhat is a Jitter?
In the context of software development what is a Jitter? More and more people are talking about it and several languages are using the so-called JIT compilation. As it differs from a compiler?…
-
14
votes2
answers1691
viewsWhat is the advantage of using languages you compile for other languages?
We were discussing in Stackoverflow’s chat about languages like Moonscript and Coffeescript. They are two languages that compile into other languages. Moonscript for Lua and Coffescript for…
-
12
votes1
answer20870
viewsWhat does compiling mean?
I have some questions about the process of compiling a code: What is the compilation process? How it works? What are the steps in the compilation process? What is the difference between build x…
-
12
votes3
answers187
viewsHow do alternative language implementations work, such as Python in the JVM?
I always see people talking about implementations of X languages in another Y language. Like for example: Jruby, a Ruby implementation in Java Jython, an implementation of Python in Java Ironpython,…
-
8
votes1
answer635
viewsIs there a difference between a compiler and an interpreter?
What’s the big difference between a compiler and an interpreter? In languages like C, Java is used a compiler, for example in Javascript an interpreter is used, but I was confronted with the term…
-
5
votes1
answer95
viewsClosure Compiler JS - CSS Transform into a Bulk Process
Google has two tools for compilar/minificar optimizing the files JS and CSS, Closure Compiler JS and Closure Compiler CSS. To perform the compilation process I can do as follows: java -jar…
-
5
votes1
answer3311
viewsWhat is and how does ascending and descending parsing work?
According to some research I did, Parsing in computing, known as Parsing in English, it is the process of analyzing an input sequence (read from a computer file or keyboard, for example) to…
-
5
votes1
answer56
viewsCan LLVM be used with the C language?
I’m studying compilers and I’m using the C language and learning about LLVM but all examples are in C++ language. The question is whether I can use the LLVM with the C language and how can I start a…
-
5
votes1
answer123
viewsHow to perform semantic analysis using pure functional programming without side Effect?
I wonder if there is any way to know what the current context is without using side effects as Agente of the elixir , letting semantic analysis be carried out along a pipeline of functions that walk…
-
4
votes1
answer64
views -
4
votes1
answer275
viewsWhat’s faster: Stack or Heap allocation?
This question may sound elementary but it has given me a good debate with a co-worker. I whenever I can make allocations on Stack because for me the growth of Stack is constant in time. And already…
-
4
votes1
answer159
viewsHow do IDE and compiler integrate?
Taken from here: What is a programming language, IDE and compiler? In general the compiler is a console program, but there are cases that they are libraries that can be used in conjunction with…
-
3
votes1
answer45
viewsIs there an Aot compiler for Java?
I’ve seen the Excelsior Jet but it is private and paid. If there is any free, how do I use it in windows? (I say this because there is so much for linux)…
-
3
votes1
answer718
viewsDifference between Ahead-Of-Time and Just-in-Time compilation
While you were reading about templates for ASP.NET I saw that one had support for AOT (Ahead of Time) and the other said nothing. I have been researching on the subject and I could not understand…
-
3
votes1
answer307
viewsWhat is the difference between object code and intermediate code?
In this question a user answered that the object code is different from intermediate code. Since most courses say that the object code is in the middle of the process, then we could not call it…
-
2
votes1
answer742
viewsParser misidentifying tokens (Flex and Bison)
I am implementing a compiler based on the Tiger language proposed by Andrew Appel’s book "Modern Compiler Implementation in C". Link: https://www.cs.princeton.edu/~Appel/Modern/c/project.html I’m…
-
2
votes1
answer47
viewsNullpointerexception when trying to obtain Java compiler instance
Next, I’m trying to get an instance of the Java compiler, using the following code: JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); if (compiler == null) { System.out.println("No…
-
2
votes0
answers30
viewsCan references affect performance?
In C#, for example, I can reference several namespaces: using System; using System.Collections.Generic; using System.Web.Security; using System.Web.UI; using System.Text; The very one Visual Studio,…
-
2
votes2
answers1336
viewsDifferences between a transpilator and a compiler
Lately there has been much talk of the term transpilator (transpiler). However, it does not seem clear to me the difference between transpiler (Babel, for example) for a compiler (Compiler)…
-
2
votes0
answers99
viewsError in a calculator code when saving tokens, flex
The error mentioned is in the 6th line of code. By running this code on the developer of VS with the win_flex o TOKEN_B is not recognised as showing a wrong result. %option nounistd noyywrap…
-
2
votes1
answer607
viewsGenerate . exe from my Program
Well I’m in doubt I saw in a forum something about that Content found in the forum and I’m looking for more explanations and examples I am developing an Auto-Backup Database generating your . SQL…
-
2
votes1
answer90
viewsFile build error . cpp using Mingw
Today I reinstalled Mingw and set it up again, I tried it several times with some programs in c++ and it was working fine, but now I try to create new programs and when I will compile using the…
-
2
votes1
answer130
viewsOptimization with GCC
Recently I was wondering if it is possible to compile with some flag optimization, avoid copying two arrays for the section .rodata? Thus, memory addresses would be equal, example const char str[7]…
-
2
votes1
answer60
viewsParser Generator and Transpilator what’s the difference?
While studying about compiler types I came across the term: Source-to-Source concerning the procedure for transpilation. It turns out that some sections further down the term Parser-Generator and…
-
2
votes1
answer15
viewsProblem compiling Math. h
Good evening, when I try to use some function of Math. h and put as argument a variable and try to compile I get an error. Can you explain to me why this is happening? Follow an example code:…
-
1
votes0
answers51
viewsVisual Studio does not compile for Windows Phone 8
I’m facing a problem with the Visual Studio 2013 Update 4, when trying to build a project for Windows Phone 8, it presents the following error: The"Compilexaml" task failed…
-
1
votes2
answers68
viewsHow to rewrite the initial array and remove items by the ID in the view with Smarty?
I’m using the View rendering library with Smarty. In my view, I have an output with the product information array inside a foreach: {assign var='remove_products' [712, 716, 717, 718, 719, 720, 745,…
-
1
votes0
answers45
viewsInstallation of a new theme in the Prestashop store 1.4.3
I installed a theme using the module: export/import Theme, as shown in this video : and now I’m getting this message in the header: Fatal error: Uncaught Exception 'Smartycompilerexception' with…
-
1
votes0
answers168
viewsHow to compile a . C/C++ on my website
Is there any way to compile a file. C/C++ within a website? let’s say a "file will be generated. c" and this file will be compiled... maybe you can do this in PHP or with some add-on.
-
1
votes1
answer815
viewsI’m having a problem with Dev C++ in displaying members of a class
To be more exact, when I press "." after some object, like I declare a vector: vector<int>Random; So far so good, so when I start typing: Random.push_back(); Dev c++ doesn’t help me complete,…
-
1
votes1
answer177
viewsHow can I check if a variable has been declared (desenv. of a compiler in Java)
I’m having trouble implementing a demonstration of a semantic analysis of the desenv. of a compiler in Java. I have a Jtextarea and put. ex type: int x; x = 'a', it must be an error since x is an…
-
1
votes1
answer223
viewsHow to install C++ compilers and previous version libraries in visual studio 2015?
How do I install older versions of c++ compilers and libraries in visual studio 2015 without having to install the IDE together? (i.e., only what is necessary to compile, run, and debug…
-
1
votes1
answer94
viewsWhy does code Blocks compile using g++ in a project configured as "C"
I’m learning C and using Codeblocks, I went on File > New > Project > "Console Application" > "GO" > Next and the question appears Please select the language you want use. I select C.…
-
1
votes1
answer232
viewsIs it possible to recover src from a deployed . WAR file?
I’m working with a lot of legacy applications here. One of them (in production) needs to be edited because it has no log. I decompiled, but I have no idea how to reassemble in this situation. I…
-
1
votes1
answer240
viewsDoubt with the Lexical and Syntactic Analyzer Generator (GALS) switch
GALS generates the code in Java. I want to put it in the eclipse to make a screen and such. I was told that in the method nextState class lexico, have to put a switch with some numbers. But where do…
-
1
votes0
answers82
viewsHow to install Jflex, Yacc, and GCC to create a compiler in windows 8.1?
I know I need to add in the windows path too, because I will do in Otepad, so to compile directly in cmd, I need to add in the windows path.
-
1
votes0
answers72
viewsError building on any protection in Qt Creator
When I try to build on any project in Qt, it gives this error message (test with one of the examples that already comes with Qt) 13:15:37: Running steps for project analogclock... 13:15:37: Could…
-
1
votes0
answers30
viewsHow does the compiler interpret separate files from a project?
As the modularization it has the header file, the .c and the main function, as the compiler joins all the codes and turns into the executable file?
-
1
votes1
answer718
viewsImplementation of a Lexical Analyzer
Hello, guys! I’m implementing a lexical parser for a grammar I created (using Gals). Grammar validation was performed using the concept of finite automata, according to the image: At the moment I…
-
1
votes2
answers581
viewsAngular 7 / Typescript error: Property 'result' does not exist on type 'Element'
I have a function that runs while performing the upload of files, however I am having an error in result within the function onload. This mistake makes no sense because if I give one console.log in…
-
1
votes0
answers83
viewsIntermediate Code Generation - Recursion in Verification
Good afternoon, guys. I’m at a stage in the matter of compilers which is the intermediate code generation of my grammar. After the steps of lexical, syntactic, semantic analysis. Basically I have…
-
0
votes0
answers38
viewsSCOUT compiler does not generate css file
Good afternoon, I am using the SCOUT compiler to work with scss and Sass files, but from yesterday to today it is no longer generating css files, it is configured correctly for the project folders.…
-
0
votes0
answers46
viewsValid production replacement for LL(1)
I have the following production: S if E then S Else S fi | if E then S fi | K Considering ε as the empty sentence, which would be a valid substitution to obtain an equivalent grammar that is LL(1)?…
compilersasked 9 years, 2 months ago Fábio Adriano 1 -
0
votes1
answer247
views -
0
votes1
answer93
viewsHow to compile software through a website?
I’m making a website where one can create software through it. But my question is: How to do this in an automated way? The proposal would be that the software would be made in WPF and the code would…
-
0
votes2
answers484
viewsIs there a way to create an IDE based on Intellij?
With some searches on the internet I discovered that Ides as Android Studio and Phpstorm are Ides based on Intellij, each with a purpose. How to create an IDE based on it? The idea is to create an…