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

arm: fix build on Thumb-only architectures #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tpetazzoni
Copy link

Building tinymembench for ARM Cortex-M currently fails, because the
arm-neon.S file contains ARM code that doesn't build on Thumb-only
architectures. To account for this and fix the build for Cortex-M,
this patch adjusts the compile time condition to also verify that the
architecture supports the ARM instruction set, by testing the
__ARM_ARCH_ISA_ARM compiler define.

Signed-off-by: Thomas Petazzoni [email protected]

Building tinymembench for ARM Cortex-M currently fails, because the
arm-neon.S file contains ARM code that doesn't build on Thumb-only
architectures. To account for this and fix the build for Cortex-M,
this patch adjusts the compile time condition to also verify that the
architecture supports the ARM instruction set, by testing the
__ARM_ARCH_ISA_ARM compiler define.

Signed-off-by: Thomas Petazzoni <[email protected]>
buildroot-auto-update pushed a commit to buildroot/buildroot that referenced this pull request Nov 13, 2016
This commit adds a patch to the tinymembench package that fixes the
build on Thumb-only architectures such as ARM Cortex-M. The patch has
been submitted upstream in
ssvb/tinymembench#13.

Fixes:

  http://autobuild.buildroot.net/results/5f0148cef22b3b9aee691e1702722a0bbc68c8e8/

Signed-off-by: Thomas Petazzoni <[email protected]>
@ssvb
Copy link
Owner

ssvb commented Jan 29, 2017

Thanks for the patch. What kind of Cortex-M system is that? I'm kinda surprised that tinymembench even works on such hardware, because of the use of mmap and relatively high memory allocation requirements (more than 64MiB). Do you have a tinymembench log from it? We have a lot of results from different systems reported in the wiki: https://github.com/ssvb/tinymembench/wiki

@tpetazzoni
Copy link
Author

I have tested it on actual hardware, this is merely a build fix.

@ssvb
Copy link
Owner

ssvb commented Feb 6, 2017

In my experience, untested fixes for compilation errors or warnings tend to do more harm than good. I guess it's up to me to check what can be done to add proper Cortex-M support. Thanks.

Copy link

@sfx2000 sfx2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiles, works - consistent...

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

Successfully merging this pull request may close these issues.

3 participants