Skip to content

GMP vs boost::multiprecision as a p4-constraints dependency #137

@fruffy

Description

@fruffy

P4C currently uses boost::multiprecision to calculate big integers. However, p4-constraints uses GMP. Is there a particular reason why GMP was chosen?

P4C used to have it, but ultimately went with boost because of license concerns. GMP uses GPL, although I do believe it is the variant with linking exceptions.

Reason I am asking is because once we integrate p4-constraints into P4C it would be nice to pick one of these big integer libraries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions