Skip to content

[RFC] CBMC architecture configuration uses architecture-specific int width #5878

Closed

Description

@tautschnig

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.

Activity

  1. added
    RFC
    on Mar 1, 2021
  2. kroening commented on Mar 1, 2021

    @kroening
    Collaborator

    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.

  3. martin-cs commented on Mar 1, 2021

    @martin-cs
    Collaborator

    Multi-language linking is a use-case that I have seen but I haven't yet seen multi-architecture.

  4. added
    aws
    on May 13, 2021
  5. feliperodri commented on Oct 6, 2022

    @feliperodri
    Collaborator

    @tautschnig are you aware of any PRs that concludes this discussion? Should we keep this issue open?

  6. removed their assignment
    on Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCawspending merge

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions