Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asp should support incremental compilation #20

Open
shoaibkamil opened this issue Sep 21, 2011 · 4 comments
Open

Asp should support incremental compilation #20

shoaibkamil opened this issue Sep 21, 2011 · 4 comments
Assignees
Labels

Comments

@shoaibkamil
Copy link
Owner

Right now, we have to write a single large source file and have that compiled; it would be better if we could write many small files (incrementally, perhaps) that are compiled into object files and then into a DLL. This way we would only recompile things if necessary.

O(1-2 weeks)

@chiaracoetzee
Copy link
Collaborator

My opinion: the best and simplest way to implement this (at least for now) is by generating multiple source files, generating a Makefile, and invoking GNU make to build. In future rebuilds, we compare the new generated files to the old ones, and if there is no difference, the file is not written and the last modified timestamp is not updated. This would allow make to figure out what needs rebuilding on its own. Has the benefit of using a dependency language familiar to many specializer developers.

@ghost ghost assigned jwon Feb 22, 2012
@jwon
Copy link
Collaborator

jwon commented Feb 27, 2012

Which files should I look at to implement this?

@chiaracoetzee
Copy link
Collaborator

A good place to start is asp/jit/asp_module.py, in the SpecializedFunction.call() method, which is invoked when a specialized function is called. It performs any necessary compilation and invokes the function. Look at methods it calls, in both Asp and CodePy. This may be involve needing functionality from CodePy that it doesn't supply, in which case we need to implement it on the Asp side instead.

@jwon
Copy link
Collaborator

jwon commented Mar 19, 2012

Please track my progress here:
https://github.com/jwon/Incremental-Compilation-on-ASP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants