Re: stackless implementation (was Re: New stackless proposal)

"Mark Hahn" <[email protected]>
Newsgroups gmane.comp.lang.prothon.user
Message-ID <001101c4686d$383b2260$0d01a8c0@MarkVaio>
> > Does your assembly only work on X86 machines?  I may ask to steal your
> > assembly code.
>
> Sure. Here an excerpt of slp_platformselect.h .
> There are a few more, not yet in the trunk.
>
> /*
>   * Platform Selection for Stackless Python
>   */
>
> #if   defined(MS_WIN32) && !defined(MS_WIN64) && defined(_M_IX86)
> #include "switch_x86_msvc.h" /* MS Visual Studio on X86 */
> #elif defined(__GNUC__) && defined(__i386__)
> #include "switch_x86_unix.h" /* gcc on X86 */
> #elif defined(__GNUC__) && defined(__PPC__) && defined(__linux__)
> #include "switch_ppc_unix.h" /* gcc on PowerPC */
> #elif defined(__GNUC__) && defined(__ppc__) && defined(__APPLE__)
> #include "switch_ppc_macosx.h" /* Apple MacOS X on PowerPC */
> #elif defined(__GNUC__) && defined(sparc) && defined(sun)
> #include "switch_sparc_sun_gcc.h" /* SunOS sparc with gcc */
> #elif defined(__GNUC__) && defined(__s390__) && defined(__linux__)
> #include "switch_s390_unix.h" /* Linux/S390 */
> #elif defined(__GNUC__) && defined(__s390x__) && defined(__linux__)
> #include "switch_s390_unix.h" /* Linux/S390 zSeries (identical) */
> #endif
>
> /* default definitions if not defined in above files */

Wow!  I'm impressed.  I thought I'd only be stealing your ideas.  It would
be great if I could steal your code for Prothon.  Will you let it go under a
Python type license?

This will let me have C extenstions in all types of threads.  If there is
anything we can do in Prothon to make your code faster or easier let me
know.

So, does it just copy the C stack into the Object stack space and pop the C
stack and vice versa?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.