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

Temptory-include #3

Open
githwxi opened this issue May 27, 2019 · 9 comments
Open

Temptory-include #3

githwxi opened this issue May 27, 2019 · 9 comments

Comments

@githwxi
Copy link
Collaborator

githwxi commented May 27, 2019

Could you also package the needed .h and .c files for compiling C code generated by tempopt?

This package is needed for someone to release such C code (instead of its ATS source). For instance, I would like to implement mytempacc in this way so as to streamline the compilation process of ATS code.

@sparverius
Copy link
Owner

Similar to how it is currently done with ATS2?

@githwxi
Copy link
Collaborator Author

githwxi commented May 27, 2019

Yes. That would be the first step.

We should think about putting all of these files in an npm package.

@sparverius
Copy link
Owner

Works for me. I should have this done later this evening

@sparverius
Copy link
Owner

Does this directory structure appear correct to you? Are there other resources needed other than all .c, .h, and .cats files?

ATS-Temptory-include-0.0.0-test/
ATS-Temptory-include-0.0.0-test/ccomp/
ATS-Temptory-include-0.0.0-test/ccomp/runtime/
ATS-Temptory-include-0.0.0-test/ccomp/runtime/temptory_runtime_trywith.c
ATS-Temptory-include-0.0.0-test/ccomp/runtime/temptory_memalloc_gcbdw.h
ATS-Temptory-include-0.0.0-test/ccomp/runtime/temptory_typedefs.h
ATS-Temptory-include-0.0.0-test/ccomp/runtime/temptory_instrset.h
ATS-Temptory-include-0.0.0-test/ccomp/runtime/temptory_runtime.c
ATS-Temptory-include-0.0.0-test/ccomp/runtime/temptory_basics.h
ATS-Temptory-include-0.0.0-test/ccomp/runtime/temptory_runtime2_dats.c
ATS-Temptory-include-0.0.0-test/ccomp/runtime/temptory_memalloca.h
ATS-Temptory-include-0.0.0-test/ccomp/runtime/temptory_runtime_memory.c
ATS-Temptory-include-0.0.0-test/ccomp/runtime/temptory_memalloc_libc.h
ATS-Temptory-include-0.0.0-test/ccomp/runtime/temptory_memalloc.h
ATS-Temptory-include-0.0.0-test/ccomp/runtime/temptory_config.h
ATS-Temptory-include-0.0.0-test/ccomp/runtime/temptory_memalloc_user2.h
ATS-Temptory-include-0.0.0-test/ccomp/runtime/temptory_memalloc_user.h
ATS-Temptory-include-0.0.0-test/ccomp/runtime/temptory_exception.h
ATS-Temptory-include-0.0.0-test/libats/
ATS-Temptory-include-0.0.0-test/libats/libc/
ATS-Temptory-include-0.0.0-test/libats/libc/CATS/
ATS-Temptory-include-0.0.0-test/libats/libc/CATS/dirent.cats
ATS-Temptory-include-0.0.0-test/libats/libc/CATS/search.cats
ATS-Temptory-include-0.0.0-test/libats/CATS/
ATS-Temptory-include-0.0.0-test/libats/CATS/basics_float.cats
ATS-Temptory-include-0.0.0-test/libats/CATS/basics_gint.cats
ATS-Temptory-include-0.0.0-test/libats/CATS/basics.cats
ATS-Temptory-include-0.0.0-test/libats/CATS/gint_fixed.cats
ATS-Temptory-include-0.0.0-test/libats/CATS/basics_char.cats
ATS-Temptory-include-0.0.0-test/libats/CATS/basics_bool.cats
ATS-Temptory-include-0.0.0-test/libats/CATS/basics_gptr.cats
ATS-Temptory-include-0.0.0-test/libats/CATS/basics_unsafe.cats
ATS-Temptory-include-0.0.0-test/libats/CATS/basics_string.cats
ATS-Temptory-include-0.0.0-test/libats/CATS/basics_stropt.cats
ATS-Temptory-include-0.0.0-test/libats/temp/
ATS-Temptory-include-0.0.0-test/libats/temp/CATS/
ATS-Temptory-include-0.0.0-test/libats/temp/CATS/hashfun.cats

@githwxi
Copy link
Collaborator Author

githwxi commented May 28, 2019

Looks correct. Once you have a package for these files, I will test it.

@sparverius
Copy link
Owner

Question:

With respect to Temptory, how should the dats files for tempacc be compiled? Any special flags?

...
Looking at ATS2-Postiats-Include I see that it contains compiled dats files for building patscc however, it is not clear to me how these c files were originally compiled.

On a side note: These files were compiled in 2017 and seem to have been included in each package since then. (See ATS2-Postiats-include-0.3.13.tgz for example)

@githwxi
Copy link
Collaborator Author

githwxi commented May 28, 2019 via email

@sparverius
Copy link
Owner

Have you tested the Include package yet?

@githwxi
Copy link
Collaborator Author

githwxi commented May 30, 2019

No. Have yet to do it. Maybe such testing code should be put into Temptory-Release.
Actually, we should probably have a testing component in Temptory-Release for testing of all sorts.

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

No branches or pull requests

2 participants