You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[RFC] CBMC architecture configuration uses architecture-specific int width #5878
CBMC version: 5.24 (b26d347)
Operating system: any
Exact command line resulting in the issue: n/a
What behaviour did you expect: Linking together goto binaries built on different platforms is possible
What happened instead: When writing goto binaries, CBMC uses int to create constants like __CPROVER_architecture_int_width. It's not obvious that such platform configuration options should be in the symbol table at all, and if they should live in there, their types should likely not be architecture-specific. configt places no requirement on those types, and could easily deal with ID_integer typed constants.
This is mostly an RFC and a note for possible future clean-up. There is no currently-known use case that's blocked by the existing implementation.
Sure, happy to change to integer -- the reason to have these in the symbol table is to do the right thing when linking. For now, that could be to reject linking binaries from different platforms when the architecture differs, but in the future it is conceivable that the linker learns how to glue binaries from different architectures together.
Activity
kroening commentedon Mar 1, 2021
Sure, happy to change to
integer-- the reason to have these in the symbol table is to do the right thing when linking. For now, that could be to reject linking binaries from different platforms when the architecture differs, but in the future it is conceivable that the linker learns how to glue binaries from different architectures together.martin-cs commentedon Mar 1, 2021
Multi-language linking is a use-case that I have seen but I haven't yet seen multi-architecture.
feliperodri commentedon Oct 6, 2022
@tautschnig are you aware of any PRs that concludes this discussion? Should we keep this issue open?
change type of numerical architecture symbols to integer
change type of numerical architecture symbols to integer
change type of numerical architecture symbols to integer
change type of numerical architecture symbols to integer
change type of numerical architecture symbols to integer
change type of numerical architecture symbols to integer
change type of numerical architecture symbols to integer