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

Incorrect function return types for code compiled with clang (coremark) #59

Open
aaronsm opened this issue Jan 30, 2020 · 0 comments
Open

Comments

@aaronsm
Copy link
Contributor

aaronsm commented Jan 30, 2020

Grab coremark from github.

Modify /path/to/coremark/linux64/core_portme.mak file as below:
-CC = gcc
+CC = clang

Compile for X86:
/path/to/coremark/make PORT_DIR=linux64

Use llvm-mctoll to translate coremark and compare the function return type.

For get_seed_args:
Function prototype of source code:
ee_s32 get_seed_args(int i, int argc, char *argv[])
Function prototype parsed:
declare dso_local void @get_seed_args(i32 %arg1, i32 %arg2, i64 %arg3)

@aaronsm aaronsm changed the title Incorrect function return types for X86 coremark compiled with clang Incorrect function return types for code compiled with clang (coremark) Mar 2, 2020
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

1 participant