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

Stupid question, but how do I compile C files to eir? #116

Open
Its-Jakey opened this issue Jun 7, 2022 · 1 comment
Open

Stupid question, but how do I compile C files to eir? #116

Its-Jakey opened this issue Jun 7, 2022 · 1 comment

Comments

@Its-Jakey
Copy link

Its-Jakey commented Jun 7, 2022

I tried using 8cc in out/8cc to compile a c file but all I get when I run 8cc is

`Usage: 8cc [ -E ][ -a ] [ -h ]

-I add to include path
-E print preprocessed source code
-D name Predefine name as a macro
-D name=def
-S Stop before assembly (default)
-c Do not run linker (default)
-U name Undefine name
-fdump-ast print AST
-fdump-stack Print stacktrace
-fno-dump-source Do not emit source code as assembly comment
-o filename Output to the specified file
-g Do nothing at this moment
-Wall Enable all warnings
-Werror Make all warnings into errors
-O Does nothing at this moment
-m64 Output 64-bit code (default)
-w Disable all warnings
-h print this help

One of -a, -c, -E or -S must be specified.
`
i still get this message even if i specify '-a'
What am i doing wrong?

@none-None1
Copy link

It seems that you should specify -S instead:

./8cc test.c -o test.eir -S

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