add linux compiled sim

This commit is contained in:
Redo 2022-11-05 12:25:53 -06:00
parent f18b3fae5f
commit 7829193f1f
4 changed files with 4 additions and 2 deletions

View File

@ -1,2 +1,4 @@
gcc compiled_sim.c -shared -o compiled_sim.dll -Wall -Werror -Ofast
set cargs=-shared -Wall -Werror -Ofast
gcc compiled_sim.c -o compiled_sim.dll %cargs%
gcc compiled_sim.c -o compiled_sim.so %cargs%
pause

Binary file not shown.

BIN
sim/compiled_sim.so Normal file

Binary file not shown.

View File

@ -8,7 +8,7 @@ ffi.cdef [[
void sim_update_nets();
void sim_update_gates();
]]
local csim = ffi.load("./compiled_sim.dll")
local csim = ffi.load("./compiled_sim")
Simulation = {}