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

Is container_node_sizes_impl.hpp platform related? #136

Closed
changyp6 opened this issue Jul 4, 2022 · 6 comments
Closed

Is container_node_sizes_impl.hpp platform related? #136

changyp6 opened this issue Jul 4, 2022 · 6 comments

Comments

@changyp6
Copy link

changyp6 commented Jul 4, 2022

Sorry for posting my question in issue section.
I find that file container_node_sizes_impl.hpp is generated during build process by nodesize_dbg.
Is this file platform related ?

I mean are the files different if one is generated by nodesize_dbg on Cortex-A76 and the other one is generated on Cortex-A53?

@foonathan
Copy link
Owner

Yes, it is. They need to be generated on the actual platform you're using.

@changyp6
Copy link
Author

Yes, it is. They need to be generated on the actual platform you're using.

Thank you for your answer.
What do I need to do if I have to cross-compile this library?
For example, what parameters do I need to set if I have to run nodesize_dbg in an emulator?

@foonathan
Copy link
Owner

I know nothing about cross-compling, sorry.

@MiguelCompany
Copy link
Contributor

@changyp6 Starting with #60, nodesize_dbg is automatically run on the emulator defined by CMAKE_CROSSCOMPILING_EMULATOR.

The last contribution to the generation of container_node_sizes_impl.hpp has been #129, which changed the way the file is generated to some CMake and static_assert machinery.

So, depending on whether you are using main or release 0.7-1 you may need setting CMAKE_CROSSCOMPILING_EMULATOR

@changyp6
Copy link
Author

changyp6 commented Aug 1, 2022 via email

@MiguelCompany
Copy link
Contributor

@changyp6

If you are cross-compiling main branch, then you don't need to do anything (the compiler and the tricks introduced by #129 in CMake will take care of generating the correct file).

If you are cross-compiling any version from 2021 or older, then you'll need a toolchain file similar to the one here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants