-
Notifications
You must be signed in to change notification settings - Fork 3
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
separate guest import and export code #25
base: main
Are you sure you want to change the base?
separate guest import and export code #25
Conversation
Signed-off-by: Pradeep Kumar K J <[email protected]>
Signed-off-by: Pradeep Kumar K J <[email protected]>
Signed-off-by: Pradeep Kumar K J <[email protected]>
Signed-off-by: Pradeep Kumar K J <[email protected]>
5acd4c8
to
eb016b7
Compare
Signed-off-by: Pradeep Kumar K J <[email protected]>
@@ -15,7 +15,7 @@ fooX3AfooX2FstringsX23c(uint8_t *, size_t, uint8_t *, size_t); | |||
extern "C" __attribute__((import_module("cabi_post_foo:foo/strings"))) | |||
__attribute__((import_name("c"))) void | |||
cabi_post_fooX3AfooX2FstringsX23c(uint8_t *); | |||
extern "C" void fooX3AfooX2FstringsX00a(uint8_t *arg0, size_t arg1) { | |||
extern "C" void fooX3AfooX2FstringsX00a(uint8_t *arg0, size_t arg1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding trailing whitespace?
clean: | ||
-rm *.o libstrings.so app-strings | ||
|
||
run: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fear these targets don't make much sense for the guest directory
|
||
``` | ||
|
||
# Call-graph for a function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for creating this!
Signed-off-by: Pradeep Kumar K J <[email protected]>
Signed-off-by: Pradeep Kumar K J <[email protected]>
Signed-off-by: Pradeep Kumar K J <[email protected]>
I have separated the guest import and export calls into separate files in this PR.
I also did some code formatting
Restructured the code as below
The directory strucutre is as below:
├── cpp_host (Native host code)
├── guest (Guest code)
├── guest_imported_fns.cpp ( host application imported calls)
├── main.cpp (Application)
└── wit (Wit file that is used for generating the code)
Added a native string rust code