Aggiorna index.js
This commit is contained in:
parent
5bcc030c6d
commit
25e2ad6521
1 changed files with 18 additions and 1 deletions
19
index.js
19
index.js
|
|
@ -1 +1,18 @@
|
|||
console.log("Hello via Bun!");
|
||||
|
||||
import { cc } from "bun:ffi";
|
||||
import source from "./test.c" with { type: "file" };
|
||||
|
||||
const {
|
||||
symbols: { fibonacci },
|
||||
} = cc({
|
||||
source,
|
||||
symbols: {
|
||||
hello: {
|
||||
args: [],
|
||||
returns: "int",
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
console.log("fibonacci serie 1 000 000: ", fibonacci() );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue