Use optimisation flags for C compiler in lpython decorator#2201
Use optimisation flags for C compiler in lpython decorator#2201czgdp1807 merged 6 commits intolcompilers:mainfrom
Conversation
| @@ -687,9 +687,9 @@ def get_rtlib_dir(): | |||
|
|
|||
There was a problem hiding this comment.
I'm not sure if the --fast` option works in the C backend. If it does, then we can use it in line 684?
There was a problem hiding this comment.
It doesn't I think.
dbcc4d9 to
689a76d
Compare
|
|
| The decorator should be used from CPython mode, i.e., when the module is | ||
| being run using CPython. When possible, it is recommended to use LPython | ||
| for the main program, and use the @cpython decorator from the LPython mode | ||
| to access CPython features that are not supported by LPython. |
There was a problem hiding this comment.
This documentation should be somewhere.
certik
left a comment
There was a problem hiding this comment.
Awesome, this looks great! I left a comment.
I think we should use all the optimisations flags by default in
lpythondecorator and generate as fast code as possible. It produces a significant difference when comparing with other JIT compilers.