Changes to autocompile_kernel.py #13
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have changed / (re)implemented the following features:
silenced certain print statements regarding:
This was done to improve output readability. The output still exists, but is now part of the jupyter notebooks logs instead.
Created a folder structure for source files and binaries to declutter the notebooks root folder
When I started using this kernel i noticed, that my rootfolder cluttered very quickly. This change seeks to eliminate the cultter while still letting the user keep their source files and executables. I've elected to keep the object files as temporary files as they're not required to run the executables. If you'd prefer them to not be temporary I can also put them in a subdirectory as well.
reimplemented the detect main function to remove duplicate compilations
This change seeks to improve a bit on performance (tho im not entirely sure whether I've succeded in that Goal) as it eliminates the need to compile everything twice. Another solution would be to only compile up until the assembly step, this would forgo the complete compilation, and would produce a (re)usable assembly file that can be checked for the main: lable.
I'm not the most seasoned python programmer so if you'd like me to change anything or have some suggestions please let me know! :)