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

Transpiling two and more C code #257

Closed
Konstantin8105 opened this issue Oct 21, 2017 · 1 comment
Closed

Transpiling two and more C code #257

Konstantin8105 opened this issue Oct 21, 2017 · 1 comment

Comments

@Konstantin8105
Copy link
Contributor

Konstantin8105 commented Oct 21, 2017

Example:
File one.c:

#include "head.h"
int main(){
        say();
        return 0;
}

File head.h:

void say();

File two.c:

include<stdio.h>
void say(){
        printf("42");
}

Command line for checking in gcc - gcc -c one.c; gcc -c two.c ; gcc -o pr one.o two.o; ./pr
Result: 42

Command line for checking clang - clang -E two.c one.c. Result is like usually.
So, with little modifications of project - we can support a multiply C code transpilation, but now we will have one big single result Go code.

Reason:
It is need for transpilation of project https://www.cs.cmu.edu/~quake/triangle.html.

@elliotchance
Copy link
Owner

This is a duplicate of #63

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