From 2a8e7aeeef99161b6f0378ac14e297c23ca6227b Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 4 Jun 2025 11:55:34 +0200 Subject: First 4 examples --- 03_threads/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 03_threads/build.sh (limited to '03_threads/build.sh') diff --git a/03_threads/build.sh b/03_threads/build.sh new file mode 100755 index 0000000..2f08909 --- /dev/null +++ b/03_threads/build.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +mkdir -p build +emcc -sEXPORTED_FUNCTIONS=_primes_in_range -sMODULARIZE -sEXPORT_NAME=Primes \ + -pthread -sPTHREAD_POOL_SIZE=16 \ + -o build/primes.mjs primes.c -- cgit v1.3