diff --git a/sim/compiled_sim.bat b/sim/compiled_sim.bat index 190eab5..e3b7520 100644 --- a/sim/compiled_sim.bat +++ b/sim/compiled_sim.bat @@ -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 diff --git a/sim/compiled_sim.dll b/sim/compiled_sim.dll index 6fe4a44..2da4b15 100644 Binary files a/sim/compiled_sim.dll and b/sim/compiled_sim.dll differ diff --git a/sim/compiled_sim.so b/sim/compiled_sim.so new file mode 100644 index 0000000..892b943 Binary files /dev/null and b/sim/compiled_sim.so differ diff --git a/sim/simulation.lua b/sim/simulation.lua index 7486f22..9ef6351 100644 --- a/sim/simulation.lua +++ b/sim/simulation.lua @@ -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 = {}