lfortran / lfortran/lfortran

Implement -O3, -O0, -ffast-math, -Ofast options

Open
#167 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

SciPy
Dominant language
C++
Stars
1.2k
Forks
271
Avg merge
1d 2h
Merged PRs (30d)
173

Description

Original issue: https://gitlab.com/lfortran/lfortran/-/issues/33

I am leaning to do -O0 by default, just like gcc/clang, to be compatible. And -Ofast will enable all optimizations including -ffast-math.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked original issue and tracing how LFortran currently handles compiler options. Define the expected behavior for -O0, -O3, -ffast-math, and -Ofast, including the proposed -O0 default and the relationship between -Ofast and -ffast-math. Done means these options are accepted and their optimization behavior is covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, fortran
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.