Closed changyp6 closed 1 year ago
Yes, it is. They need to be generated on the actual platform you're using.
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?
I know nothing about cross-compling, sorry.
@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
Hi Miguel,
Thank you for your detailed explanation.
What I'm concerning about is if container_node_sizes_impl.hpp
is platform
related.
If this file is platform related, which means I need to generate this file
on the actual platform which will run this code, or on the emulator which
has the exact same parameters as the target platform.
This is my understanding, please correct me if I am wrong.
Miguel Company @.***> 于2022年8月1日周一 13:22写道:
@changyp6 https://github.com/changyp6 Starting with #60 https://github.com/foonathan/memory/pull/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 https://github.com/foonathan/memory/pull/129, which changed the way the file is generated to some CMake and static_assert machinery.
So, depending on whether you are using main https://github.com/foonathan/memory/commit/5e523a99fdb7651979f87892691f9a43642d9422 or release 0.7-1 https://github.com/foonathan/memory/releases/tag/v0.7-1 you may need setting CMAKE_CROSSCOMPILING_EMULATOR
— Reply to this email directly, view it on GitHub https://github.com/foonathan/memory/issues/136#issuecomment-1200721847, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPLTYM2KZ7X6KLIPN57I23VW5NI5ANCNFSM52TNIZKQ . You are receiving this because you were mentioned.Message ID: @.***>
@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
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?