Dear all,
To support emscripten, I think we need to compile ECL without threads support.
However, currently ECL windows port must be built without threads, as in
ecl/ecl.h:
# ifdef ECL_THREADS
typedef HANDLE pthread_t;
typedef HANDLE pthread_mutex_t;
typedef HANDLE pthread_cond_t; /*Dummy, not really used*/
# undef ERROR
# ifdef GBC_BOEHM
# define CreateThread GC_CreateThread
# endif
# else
# error "The Windows ports cannot be built without threads."
# endif /* ECL_THREADS */
I tried to remove "else error..." part but got a compiling error from eval.d,
message:
cl -c /EHsc /DGC_DLL /DGC_BUILD /nologo /D_CRT_SECURE_NO_DEPRECATE /DNDEBUG /MD
/O2 -DGC_BUILD -DECL_API="__declspec(dllexport)" -I./ -I../ -I..\..\src\c
-I..\..\src/gc/include -I..\..\src/gc/include/private /Foeval.obj eval.c
eval.c
../../src/c/eval.d(243) : error C2143: syntax error : missing ';' before ':'
I haven't looked into this but I'm afraid that there will be more errors poped
out after I fixed this.
Am I on the right track? Or if anyone successfully built ECL without thread
support under linux, I would consider switching to linux for emscripten
support. But since my home computer runs windows (I won't have time to do this
in office), I'd be more happy to continue working under windows.
- Rujia
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list