Skip to content

Add ReleaseSafe, Debug, ReleaseFast options #1140

Open
@czgdp1807

Description

@czgdp1807

We should provide the following command line options so that testing by hand with lpython is easier,

  1. --safe - Basically debug mode by hand. Will automatically enable options like, --enable_bounds_checking, --check_integer_overflow (not sure if it is already there), --raise_key_errors (isn't there but to be added), --memory_safety (isn't there but I mean ensures memory safety in the generated code) if --safe is passed in the command line. Should be turned on by default in my opinion.
  2. --fast --safe - Keeps safe check enabled but tries to optimise as much as possible. See, Clarify the "LPython contract" in the docs #1139.
  3. --fast - No safety checks enabled in this case. The code is as high performance as possible.

cc: @certik

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions