Questions tagged [incremental-compiler]

Use incremental-compiler for questions related to compilers which scan source code for changes, recompile only changed source code, then patch the resulting executable code.

References

26 questions
30
votes
1 answer

how could someone make a c# incremental compiler like Java?

Years ago someone asked why c# doesn't allow incremental compilation like Java. El Skeet said it is to do with Java outputting .class files rather than assemblies. Now that its 2011 and groovy things like the Mono compiler-as-a-service have been…
mcintyre321
  • 12,996
  • 8
  • 66
  • 103
29
votes
4 answers

Can standard Sun javac do incremental compiling?

Recently I started to use Eclipse's java compiler, because it is significantly faster than standard javac. I was told that it's faster because it performs incremental compiling. But I'm still a bit unsure about this since I can't find any…
calavera.info
  • 1,170
  • 2
  • 15
  • 30
27
votes
3 answers

Learning incremental compilation design

There are a lot of books and articles about creating compilers which do all the compilation job at a time. And what about design of incremental compilers/parsers, which are used by IDEs? I'm familiar with first class of compilers, but I have never…
Ilya Lakhin
  • 1,904
  • 1
  • 16
  • 31
16
votes
1 answer

Is wildcard import bad in Scala with respect to incremental compilation?

In Scala, is it bad, from the point of view of efficacy and speed of incremental compilers (sbt, sbt in Eclipse, IntelliJ), to use wildcard imports? Does it adversely affect the way these incremental compilers decide what to recompile in case of…
Jean-Philippe Pellet
  • 59,296
  • 21
  • 173
  • 234
7
votes
1 answer

What does Rust's lack of incremental compilation mean, exactly?

This question was asked before Rust officially supported incremental compilation. Rust 1.24.0 and later enable incremental compilation by default for development (debug) builds. I'm an outsider trying to see if Rust is appropriate for my…
MWB
  • 11,740
  • 6
  • 46
  • 91
7
votes
1 answer

How often is "incremental compilation" performed on Java in Eclipse/ Intellij?

I understand that Eclipse uses it's own compiler for Java (ECJ) which has the ability to perform incremental compilation. From most of the readings I have found, this compilation is generally triggered by a save action, but that doesn't seem to…
user3601148
  • 175
  • 1
  • 9
6
votes
2 answers

what is the right abstraction for compilation unit in LLVM?

in LLVM we have the LLVMContext, which is the unit of storage, and we have the llvm::Module, which is where new symbols (functions and types) are built. my question is; what is the right llvm abstraction to use for compilation units? is the Module?…
lurscher
  • 25,930
  • 29
  • 122
  • 185
6
votes
1 answer

What's the best approach to incremental compilation when building a DSL using Eclipse?

As suggested by the Eclipse documentation, I have an org.eclipse.core.resources.IncrementalProjectBuilder that compiles each source file and separately I also have a org.eclipse.ui.editors.text.TextEditor that can edit each source file. Each source…
5
votes
2 answers

Cannot understand how incremental assemblers/compilers/image-based systems work

I am learning a little assembly and for my next project I would like to learn how to make an incremental assembler. By "incremental assembler" I mean an assembler that accepts new code while it's running. Generally, the workflow with assembly is…
5
votes
3 answers

How to prevent SBT from recompiling modified .class files?

In our project, we have a enhance post-process to the .class files generated by compile. This enhance step actually modifies the generated .class files then overrides it. enhance <<= enhance triggeredBy (compile in Compile) The problem is that sbt…
Chenyu
  • 171
  • 6
3
votes
1 answer

How do header files and makefiles help incremental compilation in c++?

I understand what incremental compilation is: when a compiler only compiles the code you edited not all of it. But how does separating code into .h and .c/.cc files, and makefiles in C++ help incremental compilation?
3
votes
2 answers

Preserve results of sbt incremental compilation when moving project directory

Consider the scenario: I have a simple scala project managed by sbt, in a directory called foo. cd foo sbt compile It now takes a few seconds and the project compiles correctly. Now, thanks to sbt incremental compilation, if I run sbt compile it…
Gabriele Petronella
  • 106,943
  • 21
  • 217
  • 235
2
votes
0 answers

Is is possible to have a linker generate a binary, that is as close to the previously generated one as possible?

Here is the context: I work with microcontrollers, where the resulting binary is written to an internal flash, and executed from there. The flash is erased and written in 4KiB blocks. The flasher is smart enough to skip over blocks that do not need…
2
votes
1 answer

For make faster compile go...less traits having?

EDIT Complicating matters it appears that there is an issue (that is being worked on in Play 2.1 snapshot) where routes file change can also trigger the stampeding herd effect, which is to say, recompiling controllers and dependencies. Once that is…
virtualeyes
  • 11,147
  • 6
  • 56
  • 91
1
vote
0 answers

Understanding Incremental Environment in the context of annotation processing in Java

I am confused about what exactly is incremental environment in the context of annotation processing in Java. An example is highly appreciated. The following is a quote from the Javadoc of Filer: The file creation methods take a variable number of…
Aria
  • 176
  • 2
  • 10
1
2