Skip to content

Getting system config option and using it as a compiler '-D' option #14613

Closed Answered by bonzini
voidtrance asked this question in Q&A
Discussion options

You must be logged in to vote

You can use run_command to execute getconf. Though the cache line size is a run-time parameter, so the code may not be optimal on other processors than the one you compiled on.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@voidtrance
Comment options

@bonzini
Comment options

bonzini May 17, 2025
Collaborator

Answer selected by bonzini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants