-
Notifications
You must be signed in to change notification settings - Fork 141
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
Multi-file compilation? #56
Comments
There is no linker. However, because EIR is a very simple text-based format, just concatenating EIR files may just work. Suppose you have these two files:
and you can do
Note that, as |
I realized the above wouldn't work for most cases since symbols generated by the compiler (e.g., .L1 for loops) will conflict with each other. Probably, the best workaround we can do today would be just concatenating all C source code to a single C source code before using the compiler. For example, see out/8cc.c after running |
@shinh I am currently working on using |
Is there a way to build a single output from 2 files?
The text was updated successfully, but these errors were encountered: