[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-janitors] #1340: Unable to compile a mathh gama instruction
From: |
Chicken Trac |
Subject: |
Re: [Chicken-janitors] #1340: Unable to compile a mathh gama instruction at or above optimize-level 3 |
Date: |
Fri, 03 Mar 2017 11:27:51 -0000 |
#1340: Unable to compile a mathh gama instruction at or above optimize-level 3
--------------------------------+---------------------
Reporter: rca | Owner:
Type: defect | Status: new
Priority: minor | Milestone: someday
Component: unknown | Version: 4.11.0
Resolution: | Keywords:
Estimated difficulty: |
--------------------------------+---------------------
Comment (by LemonBoy):
This happens because all the functions are defined using `foreign-lambda`
which in turn does nothing but generate a stub (see `create-foreign-stub`)
that serves as a trampoline for calling the real C function: the stub that
gets generated in that phase is the ones you're seeing in the `.inline`
file.
But there's more: all the stub does is preparing the environment and then
it just calls another stub which in turn calls the C function and this
part is missing from the inline file as it's generated much later (in
`c-backend.scm` `generate-foreign-stubs`, the stub name is the variable
named `f-id` in `create-foreign-stub`).
--
Ticket URL: <https://bugs.call-cc.org/ticket/1340#comment:4>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Chicken-janitors] #1340: Unable to compile a mathh gama instruction at or above optimize-level 3,
Chicken Trac <=