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

Building binaries without instruction compression #5509

Closed
galsanka opened this issue Mar 9, 2021 · 5 comments
Closed

Building binaries without instruction compression #5509

galsanka opened this issue Mar 9, 2021 · 5 comments
Labels
Component:Software Issue related to Software Type:Question Questions

Comments

@galsanka
Copy link

galsanka commented Mar 9, 2021

Hello all,

I have been trying to build OpenTitan software from C sources using this tutorial: https://docs.opentitan.org/doc/ug/getting_started_sw/.

I want to generate the binaries without instruction compression. I built the riscv toolchain without the C extension (i.e. by using all the recommended flags except for --with-arch=rv32im when building). After that, I added and modified the toolchain configuration file to replace the default toolchain with the one I built. I also modified meson-init.sh to point to that configuration file.

Unfortunately, the build's compiler settings only change after adding the -f flag to ./meson-init.sh -r, which removes the previously working binaries built with the original working compiler. I don't want to happen, because compiling all the other binaries without compression doesn't work.

So my question is: is there a way to compile new c binaries without compressed instructions while keeping the original working binaries (e.g. boot_rom) for the rest of the system? Meson is not cooperating and only changes after deleting all other working files, even after adding an -r flag to reconfigure. Should I just compile them using my own build system instead of relying on OpenTitan's?

Thank you,
Georges

@imphil imphil added Component:Software Issue related to Software Type:Question Questions labels Mar 9, 2021
@imphil
Copy link
Contributor

imphil commented Mar 9, 2021

@silvestrst

@silvestrst
Copy link
Contributor

silvestrst commented Mar 10, 2021 via email

@galsanka
Copy link
Author

Thank you, @silvestrst!

There might have been a misunderstanding. What I wanted to know was whether we can create executables without instruction compression, and whether they'd run on OpenTitan if compiled.

Thanks again,

Georges

@silvestrst
Copy link
Contributor

silvestrst commented Mar 11, 2021 via email

@imphil imphil closed this as completed May 11, 2021
@imphil
Copy link
Contributor

imphil commented May 11, 2021

Please reopen if this problem persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component:Software Issue related to Software Type:Question Questions
Projects
None yet
Development

No branches or pull requests

3 participants