Re: Precompiled include files

new topic     » goto parent     » topic index » view thread      » older message » newer message

I don't know anything about inlining.

It does seem to me, though, that the Translator can be at least as smart as Make when it comes to which files have been modified.

It may not be a simple change, but it should be a doable change.

Scenario:

  1. Make is building the interpreter.
  2. One of the interpreter files includes std/convert.e.
  3. The translator accepts a command flag that says "reuse compiled library files".
  4. But that the library file hasn't been translated yet, or the .e file is newer than the .c or .o file.
  5. The translator translates and compiles the file, and saves it to a known location. It does this for all std/*.e files included in the project. (I don't whether it's worthwhile for project-specific or all .e files in a project?)
  6. The translator finishes its build of the interpreter and deletes all of its old files EXCEPT the compiled library files.
  7. Make is building the translator.
  8. One of the translator files includes std/convert.e
  9. The translator accepts a command flag that says "reuse compiled library files".
  10. The translator finds the precompiled .c or .o file and compares it to the .e file, and sees that it's newer.
  11. The translator uses the precompiled file in its build of the translator, saving cycles and time.
  12. The translator finishes its build of the interpreter and deletes all of its old files EXCEPT the compiled library files.


And finally, the developer makes some changes to some project file or other and does another build; but he saves a lot cycles and time because a third or so of the project is already built. If there's a conflict, there can be a 'make clean' target which removes the precompiled files from the build directory.

Again, this is just brainstorming. If this ONLY affects building of Euphoria and not other projects then it might not be worth doing.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu